Converts string to unsigned long integer.
- Parameters
-
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. |
- 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.