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 | ||
| ) |
| 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. |
References dbg_malloc(), ENOMEM, errno, memset(), and NULL.
| 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. |
References NULL, and strtol().
Referenced by emulation_options_parse(), MmCardMount(), SpiMmcMount(), and StreamClientAccept().
| long atol | ( | const char * | str | ) |
Convert string to long integer.
| str | Pointer to the string. |
References NULL, and strtol().
Referenced by HttpParseHeader(), and NutChatSend().
| long labs | ( | long | j | ) |
Get absolute value of a long integer.
| j | Long integer. |
| 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. |
References ERANGE, errno, and LONG_MAX.
Referenced by _getf(), atoi(), atol(), HttpUrlUnescape(), 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. |