c/string/wide/wcstol

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

The functions sets the pointer pointed to by to point to the wide character past the last character interpreted. If is a null pointer, it is ignored.

Return value
Integer value corresponding to the contents of on success. If the converted value falls out of range of corresponding return type, range error occurs and long_max, long_min, llong_max or llong_min is returned. If no conversion can be performed, is returned.