wcstoul

wcstoul, wcstoull

Defined in header <wchar.h>
unsigned long      wcstoul( const wchar_t* str, wchar_t** str_end, int base );
(since C95)
unsigned long long wcstoull( const wchar_t* str, wchar_t** str_end, int base );
(since C99)

Interprets an unsigned integer value in a wide string pointed to by str.

Discards any whitespace characters (as identified by calling isspace()) until the first non-whitespace character is found, then takes as many characters as possible