wstol(3scl)wstol(3scl)NAME
wstol, watol, watoll, watoi - convert wide-character string to integer
SYNOPSIS
#include <widec.h>
long wstol(const wchar_t *nptr,
wchar_t **endptr,
int base);
long watol(wchar_t *nptr);
long watoll(wchar_t *nptr);
int watoi(wchar_t *nptr);
PARAMETERS
Pointer to wide-character string to be converted Points to a pointer
that refers to the position in the supplied string at which a character
that cannot be converted resides The radix in which characters are
interpreted
DESCRIPTION
All of the above Solaris-specific functions are mapped to the standard
function wcstol(3) using C macros defined in the header. Refer to the
man page for wcstol(3) for additional information on using these func‐
tions.
SCL IMPLEMENTATION NOTES
The watoi() function is mapped to wcstol(3) but the returned value is
cast to an int (32-bits).
There is no distinction between watol() and watoll() on Tru64 UNIX
because long and long long are both 64-bit types.
RELATED INFORMATION
Function: wcstol(3)
Manual: Solaris Compatibility Library User's Guide
wstol(3scl)