Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
BaAtoi.h
Go to the documentation of this file.
1/*
2 * ____ _________ __ _
3 * / __ \___ ____ _/ /_ __(_)___ ___ ___ / / ____ ____ _(_)____
4 * / /_/ / _ \/ __ `/ / / / / / __ `__ \/ _ \/ / / __ \/ __ `/ / ___/
5 * / _, _/ __/ /_/ / / / / / / / / / / / __/ /___/ /_/ / /_/ / / /__
6 * /_/ |_|\___/\__,_/_/ /_/ /_/_/ /_/ /_/\___/_____/\____/\__, /_/\___/
7 * /____/
8 *
9 * Barracuda Embedded Web-Server
10 *
11 ****************************************************************************
12 * HEADER
13 *
14 * $Id: BaAtoi.h 5978 2026-09-11 16:13:48Z wini $
15 *
16 * COPYRIGHT: Real Time Logic LLC, 2014
17 *
18 * This software is copyrighted by and is the sole property of Real
19 * Time Logic LLC. All rights, title, ownership, or other interests in
20 * the software remain the property of Real Time Logic LLC. This
21 * software may only be used in accordance with the terms and
22 * conditions stipulated in the corresponding license agreement under
23 * which the software has been supplied. Any unauthorized use,
24 * duplication, transmission, distribution, or disclosure of this
25 * software is expressly forbidden.
26 *
27 * This Copyright notice may not be removed or modified without prior
28 * written consent of Real Time Logic LLC.
29 *
30 * Real Time Logic LLC. reserves the right to modify this software
31 * without notice.
32 *
33 * http://www.realtimelogic.com
34 ****************************************************************************
35 *
36 *
37 */
38
39
42#ifndef __BaAtoi_h
43#define __BaAtoi_h
44
45#include <TargConfig.h>
46
47#ifndef BA_API
48#define BA_API
49#endif
50
51#ifdef __cplusplus
52extern "C" {
53#endif
54
64BA_API U64 U64_atoll(const char* s);
65
75BA_API U64 U64_atoll2(const char* s, const char* e);
76
82#define S64_atoll(s) ((S64)U64_atoll(s))
83
89BA_API U32 U32_negate(U32 n);
90
103BA_API U32 U32_atoi(const char* s);
104
115BA_API U32 U32_atoi2(const char* s, const char* e);
116
124BA_API U32 U32_hextoi(const char *s);
125#ifdef __cplusplus
126}
127#endif
128
129
130#endif
BA_API U32 U32_atoi2(const char *s, const char *e)
Convert a bounded decimal sequence with the rounding used by U32_atoi.
BA_API U32 U32_hextoi(const char *s)
Convert an unsigned hexadecimal string.
BA_API U64 U64_atoll(const char *s)
Convert a decimal string to a 64-bit integer representation.
BA_API U32 U32_atoi(const char *s)
Convert a decimal string, rounding an optional fraction.
BA_API U32 U32_negate(U32 n)
Negate a 32-bit integer representation.
BA_API U64 U64_atoll2(const char *s, const char *e)
Convert a bounded decimal character sequence to a 64-bit representation.
uint64_t U64
Unsigned 64-bit integer.
Definition: GenPrimT.h:95
uint32_t U32
Unsigned 32-bit integer.
Definition: GenPrimT.h:93