Embedded TCP/IP stack  4.7.0

◆ fnet_strtoul()

fnet_uint32_t fnet_strtoul ( const fnet_char_t str,
fnet_char_t **  ptr,
fnet_size_t  base 
)

Converts string to unsigned long integer.

Parameters
strPointer to the null-terminated string to be interpreted .
ptrPointer 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.
baseBase of the interpreted integer value. If it equals to 0, it will be set to the default value 10.
Returns
This function returns integer value corresponding to the contents of 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.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net