---
name: "wcstoimax"
section: "3"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/wcstoimax"
---

# wcstoimax(3)

convert wide-character string to integer

## NAME

wcstoimax, wcstoumax - convert wide-character string to integer

## LIBRARY

Standard C library (*libc*, *-lc*)

## SYNOPSIS

```
#include <stddef.h>
#include <inttypes.h>
```

**intmax\_t wcstoimax(const wchar\_t \*restrict** *nptr***,**                    **wchar\_t \*\*restrict** *endptr***, int** *base***);** **uintmax\_t wcstoumax(const wchar\_t \*restrict** *nptr***,**                    **wchar\_t \*\*restrict** *endptr***, int** *base***);**

## DESCRIPTION

These functions are just like [**wcstol**(3)](/wcstol/3.md) and [**wcstoul**(3)](/wcstoul/3.md), except that they return a value of type *intmax\_t* and *uintmax\_t*, respectively.

## ATTRIBUTES

For an explanation of the terms used in this section, see [**attributes**(7)](/attributes/7.md).

| | | |
| --- | --- | --- |
| **Interface** | **Attribute** | **Value** |
| **wcstoimax**(), **wcstoumax**() | Thread safety | MT-Safe locale |

## STANDARDS

C11, POSIX.1-2008.

## HISTORY

POSIX.1-2001, C99.

## SEE ALSO

[**imaxabs**(3)](/imaxabs/3.md), [**imaxdiv**(3)](/imaxdiv/3.md), [**strtoimax**(3)](/strtoimax/3.md), [**strtoumax**(3)](/strtoumax/3.md), [**wcstol**(3)](/wcstol/3.md), [**wcstoul**(3)](/wcstoul/3.md)
