WCSTOL_L(3) Library Functions Manual WCSTOL_L(3)

wcstoimax_l, wcstol_l, wcstoll_l, wcstoul_l, wcstoull_l, wcstoumax_lconvert a wide character string value to a long, unsigned long, long long, unsigned long long, intmax_t or uintmax_t integer

Standard C Library (libc, -lc)

#include <wchar.h>
#include <xlocale.h>

long
wcstol_l(const wchar_t * restrict nptr, wchar_t ** restrict endptr, int base, locale_t loc);

long long
wcstoll_l(const wchar_t * restrict nptr, wchar_t ** restrict endptr, int base, locale_t loc);

unsigned long
wcstoul_l(const wchar_t * restrict nptr, wchar_t ** restrict endptr, int base, locale_t loc);

unsigned long long
wcstoull_l(const wchar_t * restrict nptr, wchar_t ** restrict endptr, int base, locale_t loc);

#include <inttypes.h>
#include <xlocale.h>

intmax_t
wcstoimax_l(const wchar_t * restrict nptr, wchar_t ** restrict endptr, int base, locale_t loc);

uintmax_t
wcstoumax_l(const wchar_t * restrict nptr, wchar_t ** restrict endptr, int base, locale_t loc);

The (), (), (), (), () and () functions are extended locale versions of the (), (), (), (), () and () functions, respectively. Refer to their manual pages for details. Also, see xlocale(3) for more information about extended locales.

wcstol(3), xlocale(3)

March 11, 2005 macOS 15.0