| 1 |
.\" Copyright, the authors of the Linux man-pages project |
| 2 |
.\" |
| 3 |
.\" SPDX-License-Identifier: Linux-man-pages-copyleft |
| 4 |
.\" |
| 5 |
.TH wint_t 3type 2026-01-09 "Linux man-pages 6.18" |
| 6 |
.SH NAME |
| 7 |
wint_t, |
| 8 |
WEOF |
| 9 |
\- |
| 10 |
integer type capable of storing any wchar_t or WEOF |
| 11 |
.SH LIBRARY |
| 12 |
Standard C library |
| 13 |
.RI ( libc ) |
| 14 |
.SH SYNOPSIS |
| 15 |
.nf |
| 16 |
.B #include <wchar.h> |
| 17 |
.P |
| 18 |
.BR typedef " /* ... */ " wint_t; |
| 19 |
.P |
| 20 |
.BR "#define WEOF " "/* ... */" |
| 21 |
.P |
| 22 |
.B #include <stdint.h> |
| 23 |
.P |
| 24 |
.BR "#define WINT_WIDTH " "/* ... */" |
| 25 |
.BR "#define WINT_MAX " "/* ... */" |
| 26 |
.BR "#define WINT_MIN " "/* ... */" |
| 27 |
.fi |
| 28 |
.SH DESCRIPTION |
| 29 |
.I wint_t |
| 30 |
is a type used in functions that work with wide characters. |
| 31 |
It is capable of storing any valid |
| 32 |
.IR wchar_t (3type) |
| 33 |
or |
| 34 |
.BR WEOF . |
| 35 |
It is an integer type. |
| 36 |
.P |
| 37 |
.B WEOF |
| 38 |
is used by wide-character functions |
| 39 |
to indicate the end of an input file |
| 40 |
or an error. |
| 41 |
It is of type |
| 42 |
.IR wint_t . |
| 43 |
.SH STANDARDS |
| 44 |
C11, POSIX.1-2024. |
| 45 |
.SH HISTORY |
| 46 |
.TP |
| 47 |
.I wint_t |
| 48 |
.TQ |
| 49 |
.B WEOF |
| 50 |
SUSv1, |
| 51 |
C99, |
| 52 |
POSIX.1-2001. |
| 53 |
.TP |
| 54 |
.B WINT_MAX |
| 55 |
.TQ |
| 56 |
.B WINT_MIN |
| 57 |
C99, POSIX.1-2001. |
| 58 |
.P |
| 59 |
The |
| 60 |
.B WINT_WIDTH |
| 61 |
macro was added in C23. |
| 62 |
.SH NOTES |
| 63 |
The following header also provides |
| 64 |
.I wint_t |
| 65 |
and |
| 66 |
.BR WEOF : |
| 67 |
.IR <wctype.h> . |
| 68 |
.SH SEE ALSO |
| 69 |
.BR wchar_t (3type), |
| 70 |
.BR fputwc (3) |