Debian Codegraph @

upstream/debian-trixie/man3/wint_t.3type

raw
1 .\" Copyright (c) 2024 by Alejandro Colomar <[email protected]>
2 .\"
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
4 .\"
5 .TH wint_t 3type 2024-05-03 "Linux man-pages 6.9.1"
6 .SH NAME
7 wint_t,
8 WEOF
9 \-
10 integer type capable of storing any wchar_t of 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 wchar_t or WEOF.
32 It is an integer type.
33 .P
34 .B WEOF
35 is used by wide-character functions
36 to indicate the end of an input file
37 or an error.
38 It is of type
39 .IR wint_t .
40 .SH STANDARDS
41 C11, POSIX.1-2008.
42 .SH HISTORY
43 C99, POSIX.1-2001.
44 .P
45 The
46 .B WINT_WIDTH
47 macro was added in C23.
48 .SH NOTES
49 The following header also provides
50 .I wint_t
51 and
52 .BR WEOF :
53 .IR <wctype.h> .
54 .SH SEE ALSO
55 .BR wchar_t (3type),
56 .BR fputwc (3)