strtoul

Syntax:

    #include <cstdlib>
    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, and that it returns ULONG_MAX on overflow.

Related Topics: strtol