1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
10 .\" References consulted:
11 .\" GNU glibc-2 source code and manual
12 .\" Dinkumware C library reference http://www.dinkumware.com/
13 .\" OpenGroup's Single UNIX specification
14 .\" http://www.UNIX-systems.org/online.html
17 .\" Modified Tue Oct 16 23:18:40 BST 2001 by John Levon <moz@compsoc.man.ac.uk>
18 .TH FGETWC 3 2021-03-22 "GNU" "Linux Programmer's Manual"
20 fgetwc, getwc \- read a wide character from a FILE stream
26 .BI "wint_t fgetwc(FILE *" stream );
27 .BI "wint_t getwc(FILE *" stream );
32 function is the wide-character equivalent
36 It reads a wide character from \fIstream\fP and returns it.
37 If the end of stream is reached, or if \fIferror(stream)\fP becomes true,
40 If a wide-character conversion error occurs, it sets
41 \fIerrno\fP to \fBEILSEQ\fP and returns
46 function or macro functions identically to
48 It may be implemented as a macro, and may evaluate its argument
50 There is no reason ever to use it.
52 For nonlocking counterparts, see
53 .BR unlocked_stdio (3).
57 returns the next wide-character from the stream.
62 is set to indicate the error.
64 Apart from the usual ones, there is
67 The data obtained from the input stream does not
68 form a valid character.
70 For an explanation of the terms used in this section, see
78 Interface Attribute Value
82 T} Thread safety MT-Safe
88 POSIX.1-2001, POSIX.1-2008, C99.
97 In the absence of additional information passed to the
100 reasonable to expect that
102 will actually read a multibyte sequence
103 from the stream and then convert it to a wide character.
108 .BR unlocked_stdio (3)