wint_t(3type)

wint_t3type

Integer type capable of storing any wchar_t or weof

Usage

#include <wchar.h>

typedef /* ... */ wint_t;

#define WEOF /* ... */

#include <stdint.h>

#define WINT_WIDTH /* ... */ #define WINT_MAX /* ... */ #define WINT_MIN /* ... */

Library

Standard C library (libc)

Overview

wint_t is a type used in functions that work with wide characters. It is capable of storing any valid wchar_t(3type) or WEOF. It is an integer type.

WEOF is used by wide-character functions to indicate the end of an input file or an error. It is of type wint_t.

Notes

The following header also provides wint_t and WEOF: <wctype.h>.

Releases

2 releases since Debian 13 (Trixie); the text changed 1 time.

  1. 13
  2. Arch

Standards

C11, POSIX.1-2024.

History

wint_tWEOF

SUSv1, C99, POSIX.1-2001.

WINT_MAXWINT_MIN

C99, POSIX.1-2001.

The WINT_WIDTH macro was added in C23.

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.