---
name: "wcstol_l"
section: "3"
platform: "macos"
package: "Libc"
version: "1752.120.2"
release: "macOS 26.5"
platforms: ["macos"]
url: "https://new.carta.tech/wcstol_l"
---

# wcstol\_l(3)

convert a wide character string value to a long, unsigned long, long long, unsigned long long, intmax\_t or uintmax\_t integer

## NAME

**wcstoimax\_l**, **wcstol\_l**, **wcstoll\_l**, **wcstoul\_l**, **wcstoull\_l**, **wcstoumax\_l** – convert a wide character string value to a *long*, *unsigned long*, *long long*, *unsigned long long*, *intmax\_t* or *uintmax\_t* integer

## LIBRARY

Standard C Library (libc, -lc)

## SYNOPSIS

**#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*);

## DESCRIPTION

The **wcstol\_l**(), **wcstoul\_l**(), **wcstoll\_l**(), **wcstoull\_l**(), **wcstoimax\_l**() and **wcstoumax\_l**() functions are extended locale versions of the **wcstol**(), **wcstoul**(), **wcstoll**(), **wcstoull**(), **wcstoimax**() and **wcstoumax**() functions, respectively. Refer to their manual pages for details. Also, see [xlocale(3)](/xlocale/3.md) for more information about extended locales.

## SEE ALSO

[wcstol(3)](/wcstol/3.md), [xlocale(3)](/xlocale/3.md)
