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 http://www.UNIX-systems.org/online.html
14 .\" About this Japanese page, please contact to JM Project <JM@linux.or.jp>
15 .\" Translated Sun Aug 29 15:03:11 JST 1999
16 .\" by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
17 .\" Updated Sat Jan 8 JST 2000 by Kentaro Shirakata <argrath@ub32.org>
18 .\" Updated Fri Nov 2 JST 2001 by Kentaro Shirakata <argrath@ub32.org>
20 .TH FPUTWC 3 1999-07-25 "GNU" "Linux Programmer's Manual"
23 .\"O fputwc, putwc \- write a wide character to a FILE stream
24 fputwc, putwc \- ¥ï¥¤¥Éʸ»ú¤ò FILE ¥¹¥È¥ê¡¼¥à¤Ë½ñ¤¹þ¤à
32 .BI "wint_t fputwc(wchar_t " wc ", FILE *" stream );
33 .BI "wint_t putwc(wchar_t " wc ", FILE *" stream );
39 .\"O function is the wide-character
40 .\"O equivalent of the
43 .\"O It writes the wide character \fIwc\fP to \fIstream\fP.
45 .\"O \fIferror(stream)\fP becomes true, it returns
47 .\"O If a wide character conversion error occurs,
48 .\"O it sets \fIerrno\fP to \fBEILSEQ\fP and returns
50 .\"O Otherwise it returns \fIwc\fP.
54 ¤ËÂбþ¤¹¤ë¥ï¥¤¥Éʸ»ú´Ø¿ô¤Ç¤¢¤ë¡£¤³¤Î
55 ´Ø¿ô¤Ï¡¢¥ï¥¤¥Éʸ»ú \fIwc\fP ¤ò \fIstream\fP ¤Ë½ñ¤¹þ¤à¡£
56 \fIferror(stream)\fP ¤¬¿¿¤Ë¤Ê¤ë¤È¡¢¤³¤Î´Ø¿ô¤Ï
59 ¥ï¥¤¥Éʸ»úÊÑ´¹¤Ç¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¤Ï¡¢
60 \fIerrno\fP ¤Ë \fBEILSEQ\fP ¤ò¥»¥Ã¥È¤·¡¢
63 ¤½¤ì°Ê³°¤Î¾ì¹ç¤Ç¤Ï¡¢¤³¤Î´Ø¿ô¤Ï \fIwc\fP ¤òÊÖ¤¹¡£
67 .\"O function or macro functions identically to
69 .\"O It may be implemented as a macro, and may evaluate its argument
71 .\"O There is no reason ever to use it.
73 ´Ø¿ô¤¢¤ë¤¤¤Ï¥Þ¥¯¥í¤Ï¡¢
75 ¤ÈÁ´¤¯Æ±¤¸Æ°ºî¤ò¤¹¤ë¡£
76 ¤³¤Î´Ø¿ô¤Ï¥Þ¥¯¥í¤È¤·¤Æ¼ÂÁõ¤µ¤ì¤ë¤«¤â¤·¤ì¤Ê¤¤¤Î¤Ç¡¢°ú¤¿ô¤¬Ê£¿ô²óɾ²Á¤µ
77 ¤ì¤ë¤«¤â¤·¤ì¤Ê¤¤¡£¤³¤Î´Ø¿ô¤ò»È¤¦Íýͳ¤Ï¤â¤Ï¤ä¸ºß¤·¤Ê¤¤¡£
79 .\"O For nonlocking counterparts, see
80 .\"O .BR unlocked_stdio (3).
81 ¤³¤ì¤é¤Î½èÍý¤òÄä»ß¤»¤º¤Ë¹Ô¤¤¤¿¤¤¤È¤¤Ï¡¢
82 .BR unlocked_stdio (3)
84 .\"O .SH "RETURN VALUE"
88 .\"O function returns \fIwc\fP if no error occurred, or
90 .\"O to indicate an error.
92 ´Ø¿ô¤Ï¡¢¥¨¥é¡¼¤¬µ¯¤¤Ê¤±¤ì¤Ð \fIwc\fP ¤òÊÖ¤¹¡£¥¨¥é¡¼¤Î¾ì¹ç¤Ë¤Ï
97 .\"O Apart from the usual ones, there is
98 ÉáÄ̤Τâ¤Î¤Î¾¤Ë¡¢°Ê²¼¤Î¤â¤Î¤¬¤¢¤ë¡£
101 .\"O Conversion of \fIwc\fP to the stream's encoding fails.
102 \fIwc\fP ¤«¤é¥¹¥È¥ê¡¼¥à¤ÎÉä¹æ¤Ø¤ÎÊÑ´¹¤Ë¼ºÇÔ¤·¤¿¡£
103 .\"O .SH "CONFORMING TO"
115 ¤ÎÆ°ºî¤Ï¸½ºß¤Î¥í¥±¡¼¥ë¤Î
119 .\"O In the absence of additional information passed to the
122 .\"O reasonable to expect that
124 .\"O will actually write the multibyte
125 .\"O sequence corresponding to the wide character \fIwc\fP.
127 ¥·¥¹¥Æ¥à¥³¡¼¥ë¤ËÅϤ¹ÄɲþðÊ󤬤ʤ¤¾ì¹ç¤Ë¤Ï¡¢
130 ¼ÂºÝ¤Ë¤Ï¥ï¥¤¥Éʸ»ú \fIwc\fP ¤ËÂбþ¤¹¤ë¥Þ¥ë¥Á¥Ð¥¤¥È¥·¡¼¥±¥ó¥¹¤ò½ñ¤¹þ¤à¤È
136 .BR unlocked_stdio (3)