1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
8 .\" References consulted:
9 .\" GNU glibc-2 source code and manual
10 .\" Dinkumware C library reference http://www.dinkumware.com/
11 .\" OpenGroup's Single Unix specification
12 .\" http://www.UNIX-systems.org/online.html
15 .\" Modified Tue Oct 16 23:18:40 BST 2001 by John Levon <moz@compsoc.man.ac.uk>
17 .\" About this Japanese page, please contact to JM Project <JM@linux.or.jp>
18 .\" Translated Sun Aug 29 15:03:27 JST 1999
19 .\" by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
20 .\" Updated Sun Dec 26 JST 1999 by Kentaro Shirakata <argrath@ub32.org>
21 .\" Updated Fri Nov 2 JST 2001 by Kentaro Shirakata <argrath@ub32.org>
23 .TH FGETWC 3 1999-07-25 "GNU" "Linux Programmer's Manual"
26 .\"O fgetwc, getwc \- read a wide character from a FILE stream
27 fgetwc, getwc \- ¥ï¥¤¥Éʸ»ú¤ò FILE ¥¹¥È¥ê¡¼¥à¤«¤éÆɤ߹þ¤à
35 .BI "wint_t fgetwc(FILE *" stream );
36 .BI "wint_t getwc(FILE *" stream );
42 .\"O function is the wide-character equivalent
46 .\"O It reads a wide character from \fIstream\fP and returns it.
47 .\"O If the end of stream is reached, or if \fIferror(stream)\fP becomes true,
50 .\"O If a wide character conversion error occurs, it sets
51 .\"O \fIerrno\fP to \fBEILSEQ\fP and returns
56 ¤ËÂбþ¤¹¤ë¥ï¥¤¥Éʸ»ú´Ø¿ô¤Ç¤¢¤ë¡£
57 ¤³¤Î´Ø¿ô¤Ï \fIstream\fP ¤«¤é¥ï¥¤¥Éʸ»ú¤ò 1 ʸ»úÆɤ߹þ¤ß¡¢¤³¤ì¤òÊÖ¤¹¡£
58 ¥¹¥È¥ê¡¼¥à¤Î½ªÃ¼¤Ë㤹¤ë¤«¡¢\fIferror(stream)\fP ¤¬¿¿¤Ë¤Ê¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢
62 ¥ï¥¤¥Éʸ»úÊÑ´¹¤Ç¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¤Ï¡¢
63 \fIerrno\fP ¤Ë \fBEILSEQ\fP ¤ò¥»¥Ã¥È¤·¡¢
69 .\"O function or macro functions identically to
72 ´Ø¿ô¤¢¤ë¤¤¤Ï¥Þ¥¯¥í¤Ï¡¢
74 ¤ÈÁ´¤¯Æ±¤¸Æ°ºî¤ò¤¹¤ë¡£
75 .\"O It may be implemented as a macro, and may evaluate its argument
77 .\"O There is no reason ever to use it.
78 ¤³¤Î´Ø¿ô¤Ï¥Þ¥¯¥í¤È¤·¤Æ¼ÂÁõ¤µ¤ì¤ë¤«¤â¤·¤ì¤Ê¤¤¤Î¤Ç¡¢°ú¤¿ô¤¬Ê£¿ô²óɾ²Á¤µ
79 ¤ì¤ë¤«¤â¤·¤ì¤Ê¤¤¡£¤³¤Î´Ø¿ô¤ò»È¤¦Íýͳ¤Ï¤â¤Ï¤ä¸ºß¤·¤Ê¤¤¡£
81 .\"O For nonlocking counterparts, see
82 .\"O .BR unlocked_stdio (3).
83 ¤³¤ì¤é¤Î½èÍý¤ò¥í¥Ã¥¯¤»¤º¤Ë¹Ô¤¤¤¿¤¤¤È¤¤Ï¡¢
84 .BR unlocked_stdio (3)
86 .\"O .SH "RETURN VALUE"
90 .\"O function returns the next wide-character
91 .\"O from the stream, or
94 ´Ø¿ô¤Ï¥¹¥È¥ê¡¼¥à¤Î¼¡¤Î¥ï¥¤¥Éʸ»ú¤«¡¢¤¢¤ë¤¤¤Ï
99 .\"O Apart from the usual ones, there is
100 Ä̾ï¤Î¥¨¥é¡¼¤Ë²Ã¤¨¤Æ¡¢°Ê²¼¤Î¥¨¥é¡¼¤¬¤¢¤ë:
103 .\"O The data obtained from the input stream does not
104 .\"O form a valid character.
105 ÆþÎÏ¥¹¥È¥ê¡¼¥à¤«¤é¼èÆÀ¤·¤¿¥Ç¡¼¥¿¤¬¡¢Àµ¤·¤¤Ê¸»ú¤Ç¤Ê¤¤¡£
106 .\"O .SH "CONFORMING TO"
118 ¤ÎÆ°ºî¤Ï¡¢¸½ºß¤Î¥í¥±¡¼¥ë¤Î
122 .\"O In the absence of additional information passed to the
125 .\"O reasonable to expect that
127 .\"O will actually read a multibyte sequence
128 .\"O from the stream and then convert it to a wide character.
130 ¥·¥¹¥Æ¥à¥³¡¼¥ë¤ËÅϤ¹ÄɲþðÊ󤬤ʤ¤¾ì¹ç¤Ë¤Ï¡¢
133 ¤Ë¤Ï¥Þ¥ë¥Á¥Ð¥¤¥È¥·¡¼¥±¥ó¥¹¤ò¥¹¥È¥ê¡¼¥à¤«¤éÆɤ߹þ¤ß¡¢¤³¤ì¤ò¥ï¥¤¥Éʸ»ú¤Ë
134 ÊÑ´¹¤¹¤ë¤È´üÂÔ¤¹¤ë¤³¤È¤ÏŬÀڤǤ¢¤ë¡£
140 .BR unlocked_stdio (3)