strtol, wcstol
Convert strings to a long-integer value.
Routine | Required Header |
---|---|
strtol | <stdlib.h> |
wcstol | <stdlib.h> |
long strtol( const char *nptr, char **endptr, int base ); long wcstol( const wchar_t *nptr, wchar_t **endptr, int base );
Parameters
- nptr
- Null-terminated string to convert
- endptr
- Pointer to character that stops scan
- base
- Number base to use