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 .\" Japanese Version Copyright (c) 1999 HANATAKA Shinya
16 .\" all rights reserved.
17 .\" Translated Tue Jan 11 00:56:29 JST 2000
18 .\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
19 .\" Updated Sat Nov 3 JST 2001 by Kentaro Shirakata <argrath@ub32.org>
21 .TH GETWCHAR 3 1999-07-25 "GNU" "Linux Programmer's Manual"
24 .\"O getwchar \- read a wide character from standard input
25 getwchar \- ɸ½àÆþÎϤè¤ê¥ï¥¤¥Éʸ»ú¤òÆɤ߹þ¤à
31 .B "wint_t getwchar(void);"
37 .\"O function is the wide-character equivalent of the
40 .\"O It reads a wide character from \fIstdin\fP and returns
42 .\"O If the end of stream is reached, or if \fIferror(stdin)\fP becomes
45 .\"O If a wide character conversion error occurs, it sets
46 .\"O \fIerrno\fP to \fBEILSEQ\fP and returns
51 ´Ø¿ô¤Î¥ï¥¤¥Éʸ»úÈǤǤ¢¤ë¡£
52 \fBstdin\fP ¤«¤é¥ï¥¤¥Éʸ»ú¤òÆɤ߹þ¤ó¤Ç¤½¤ì¤òÊÖ¤¹¡£
53 ¥¹¥È¥ê¡¼¥à¤ÎºÇ¸å¤Ë㤷¤Æ¤¤¤ë¾ì¹ç¤ä \fIferror(stdin)\fP ¤¬¿¿¤Î¾ì¹ç¤Ë¤Ï
55 ¤òÊÖ¤¹¡£¥ï¥¤¥Éʸ»úÊÑ´¹¤Ç¥¨¥é¡¼¤¬µ¯¤³¤Ã¤¿¾ì¹ç¤Ë¤Ï \fIerrno\fP ¤Ë
56 \fBEILSEQ\fP ¤òÀßÄꤷ¤Æ
60 .\"O For nonlocking counterparts, see
61 .\"O .BR unlocked_stdio (3).
62 ¤³¤ì¤é¤Î½èÍý¤ò¥í¥Ã¥¯¤»¤º¤Ë¹Ô¤¤¤¿¤¤¤È¤¤Ï¡¢
63 .BR unlocked_stdio (3)
65 .\"O .SH "RETURN VALUE"
69 .\"O function returns the next wide-character from
70 .\"O standard input, or
73 ´Ø¿ô¤Ïɸ½àÆþÎϤμ¡¤Î¥ï¥¤¥Éʸ»ú¤òÊÖ¤¹¤«¡¢
76 .\"O .SH "CONFORMING TO"
88 ¤ÎÆ°ºî¤Ï¸½ºß¤Î¥í¥±¡¼¥ë¤Î
90 ¥«¥Æ¥´¥ê¤Ë°Í¸¤·¤Æ¤¤¤ë¡£
92 .\"O It is reasonable to expect that
94 .\"O will actually read a multibyte
95 .\"O sequence from standard input and then convert it to a wide character.
97 ¤¬¼ÂºÝ¤Ë¤Ïɸ½àÆþÎϤ«¤é¥Þ¥ë¥Á¥Ð¥¤¥ÈÎó¤òÆɤ߹þ¤ó¤Ç
98 ¥ï¥¤¥Éʸ»ú¤ËÊÑ´¹¤¹¤ë¤³¤È¤ò´üÂÔ¤·¤Æ¤âÎɤ¤¡£
102 .BR unlocked_stdio (3)