#include <stdlib.h>
unsigned long strtoul(const char *s,
char **end,
int base);
strtoul() converts string s into an unsigned long int of base base, skipping over any white space at the beginning of s. It stops scanning when it reaches a character not matching the required syntax (or a character too large for a given base) and returns a pointer to that character in *end. The number format strtoul() accepts is the same as for strtol() except that the negative sign is not allowed, and so are the possible values for base.
The number read. If no number is found, zero is returned; if the value is larger than ULONG_MAX, ULONG_MAX is returned and errno is set to ERANGE.
strtod(), and