Embedded TCP/IP stack
4.7.0
|
fnet_uint32_t fnet_strtoul | ( | const fnet_char_t * | str, |
fnet_char_t ** | ptr, | ||
fnet_size_t | base | ||
) |
Converts string to unsigned long integer.
str | Pointer to the null-terminated string to be interpreted . |
ptr | Pointer to a pointer to character that will be set to the character immediately following the unsigned long integer in the string. If no integer can be formed, it points to the first wrong character. |
base | Base of the interpreted integer value. If it equals to 0, it will be set to the default value 10. |
str
on success. If no conversion can be performed, 0
is returned.This function converts a string to an unsigned long integer.
The string to be converted can contain the digits '0' to '9'. Depending on the base, the string can also contain letters representing digits greater than 9.