C Standard Library. More...
Functions | |
void * | calloc (size_t num, size_t size) |
Allocate space for an array. | |
void * | dbg_calloc (size_t num, size_t size, CONST char *file, int line) |
Allocate space for an array. | |
int | abs (int j) |
Compute absolute value of an integer. | |
int | atoi (CONST char *str) |
Convert string to integer. | |
long | atol (CONST char *str) |
Convert string to long integer. | |
long | labs (long j) |
Get absolute value of a long integer. | |
long | strtol (CONST char *nptr, char **endptr, int base) |
Convert a string to long integer. | |
unsigned long | strtoul (CONST char *nptr, char **endptr, int base) |
Convert a string to an unsigned long integer. |
C Standard Library.
void* calloc | ( | size_t | num, |
size_t | size | ||
) |
Allocate space for an array.
num | Number of elements. |
size | Size of a single element. |
Definition at line 100 of file calloc.c.
References ENOMEM, errno, malloc(), and memset().
void* dbg_calloc | ( | size_t | num, |
size_t | size, | ||
CONST char * | file, | ||
int | line | ||
) |
Allocate space for an array.
num | Number of elements. |
size | Size of a single element. |
Definition at line 64 of file calloc_dbg.c.
References dbg_malloc(), ENOMEM, errno, and memset().
int abs | ( | int | j | ) |
Compute absolute value of an integer.
j | The integer value. |
int atoi | ( | CONST char * | str | ) |
Convert string to integer.
str | Pointer to the string. |
Definition at line 92 of file atoi.c.
References strtol().
Referenced by MmCardMount(), and SpiMmcMount().
long atol | ( | CONST char * | str | ) |
Convert string to long integer.
str | Pointer to the string. |
Definition at line 92 of file atol.c.
References strtol().
Referenced by NutChatSend().
long labs | ( | long | j | ) |
long strtol | ( | CONST char * | nptr, |
char ** | endptr, | ||
int | base | ||
) |
Convert a string to long integer.
nptr | Points to a character string to convert. |
endptr | Is a result parameter that, if not NULL, returns a string beginning with the first character not converted. |
base | Number base of the string. |
Definition at line 99 of file strtol.c.
References CONST, ERANGE, errno, and LONG_MAX.
Referenced by _getf(), atoi(), atol(), NutHttpURLDecode(), and SSDPTask().
unsigned long strtoul | ( | CONST char * | nptr, |
char ** | endptr, | ||
int | base | ||
) |
Convert a string to an unsigned long integer.
nptr | Points to a character string to convert. |
endptr | Is a result parameter that, if not NULL, returns a string beginning with the first character not converted. |
base | Number base of the string. |