#include <stdlib.h> unsigned long strtoul( const char *start, char **end, int base );
The function strtoul() behaves exactly like strtol(), except that it returns an unsigned long rather than a mere long.