1 .\" Copyright (c) 1990, 1991 Regents of the University of California.
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by the University of
15 .\" California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" @(#)stdio.3 6.5 (Berkeley) 5/6/91
34 .\" Converted for Linux, Mon Nov 29 16:07:22 1993, faith@cs.unc.edu
35 .\" Modified, 2001-12-26, aeb
37 .\" Japanese Version Copyright (c) 1997 YOSHINO Takashi
38 .\" all rights reserved.
39 .\" Translated Mon Jan 20 23:06:18 JST 1997
40 .\" by YOSHINO Takashi <yoshino@civil.jcn.nihon-u.ac.jp>
41 .\" Updated & Modified Thu Feb 14 21:39:49 JST 2002
42 .\" by Yuichi SATO <ysato@h4.dion.ne.jp>
43 .\" Updated & Modified Sun Sep 7 14:36:19 JST 2003
44 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
45 .\" Updated & Modified Sat Jan 17 03:18:29 JST 2004 by Yuichi SATO
47 .\"WORD: position indicator °ÌÃֻؼ¨»Ò
48 .\"WORD: positioning requests °ÌÃÖ»ØÄê¥ê¥¯¥¨¥¹¥È
50 .TH STDIO 3 2001-12-26 "" "Linux Programmer's Manual"
53 .\"O stdio \- standard input/output library functions
54 stdio \- ɸ½àÆþ½ÐÎϥ饤¥Ö¥é¥ê´Ø¿ô
66 .\"O The standard I/O library provides a simple and efficient buffered stream
68 ɸ½àÆþ½ÐÎϥ饤¥Ö¥é¥ê¤Ï¡¢´Êñ¤«¤Ä¸ú²Ì¤Î¤è¤¤¡¢
69 ¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤µ¤ì¤¿¥¹¥È¥ê¡¼¥àÆþ½ÐÎÏ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤òÄ󶡤¹¤ë¡£
70 .\"O Input and output is mapped into logical data streams and the
71 .\"O physical I/O characteristics are concealed.
72 ÆþÎϤȽÐÎϤÏÏÀÍý¥Ç¡¼¥¿¥¹¥È¥ê¡¼¥à¤Ë³ä¤êÉÕ¤±¤é¤ì¡¢
73 Æþ½ÐÎϤÎʪÍýŪ¤ÊÆÃħ¤Ï±£Ê䵤ì¤ë¡£
74 .\"O The functions and macros are
75 .\"O listed below; more information is available from the individual man pages.
76 ¤³¤Î¥é¥¤¥Ö¥é¥ê¤Ë°¤¹¤ë´Ø¿ô¤È¥Þ¥¯¥í¤ò°Ê²¼¤Ëµó¤²¤ë¡£
77 ¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ï¸Ä¡¹¤Î man ¥Ú¡¼¥¸¤«¤éÆÀ¤ë¤³¤È¤¬¤Ç¤¤ë¡£
79 .\"O A stream is associated with an external file (which may be a physical
82 .\"O a file, which may involve creating a new file.
83 .\"O Creating an existing file
84 .\"O causes its former contents to be discarded.
86 .I ¥ª¡¼¥×¥ó (open) ¤¹¤ë
88 ¥¹¥È¥ê¡¼¥à¤Ï³°Éô¥Õ¥¡¥¤¥ë (Ä̾ï¤ÏʪÍý¥Ç¥Ð¥¤¥¹) ¤ËÏ¢·ë¤µ¤ì¤ë¡£
89 ¤³¤ÎÁàºî¤Ë¤Ï¿·¤·¤¯¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ë¤³¤È¤â´Þ¤Þ¤ì¤ë¡£
90 ´û¸¤Î¥Õ¥¡¥¤¥ë¤ÈƱ¤¸Ì¾Á°¤Î¥Õ¥¡¥¤¥ë¤ò¿·¤¿¤Ëºî¤ë¤È¡¢
91 ¤â¤È¤Î¥Õ¥¡¥¤¥ë¤ÎÃæ¿È¤¬¼Î¤Æ¤é¤ì¤Æ¤·¤Þ¤¦¡£
92 .\"O If a file can support
93 .\"O positioning requests (such as a disk file, as opposed to a terminal) then a
94 .\"O .I file position indicator
95 .\"O associated with the stream is positioned at the start of the file (byte
96 .\"O zero), unless the file is opened with append mode.
97 ¥Õ¥¡¥¤¥ë¤¬°ÌÃÖ»ØÄê¥ê¥¯¥¨¥¹¥È¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë
98 (¥Ç¥£¥¹¥¯¥Õ¥¡¥¤¥ë¤Ê¤É¤¬ÁêÅö¤¹¤ë¡£µÕ¤ÎÎã¤È¤·¤Æ¤ÏüËö¤¬µó¤²¤é¤ì¤ë) ¾ì¹ç¡¢
99 ¤½¤Î¥¹¥È¥ê¡¼¥à¤ËÏ¢·ë¤µ¤ì¤¿
100 .I ¥Õ¥¡¥¤¥ë°ÌÃֻؼ¨»Ò (file position indicator)
101 ¤Ï¡¢Äɲå⡼¥É¤Ç³«¤«¤ì¤Ê¤¤¸Â¤ê¥Õ¥¡¥¤¥ë¤ÎÀèƬ (0 ¥Ð¥¤¥ÈÌÜ) ¤Ë°ÌÃÖ¤¹¤ë¡£
102 .\"O If append mode is used,
103 .\"O it is unspecified whether the position indicator will be placed at the
104 .\"O start or the end of the file.
105 Äɲå⡼¥É¤ò»ÈÍѤ·¤¿¾ì¹ç¡¢
106 °ÌÃֻؼ¨»Ò¤ò¥Õ¥¡¥¤¥ë¤ÎÀèƬ¤ËÃÖ¤«¤ì¤ë¤«ËöÈø¤ËÃÖ¤«¤ì¤ë¤«¤Ïµ¬Äꤵ¤ì¤Æ¤¤¤Ê¤¤¡£
107 .\"O The position indicator is maintained by
108 .\"O subsequent reads, writes and positioning requests.
110 °Ê¹ß¤ÎÆɤ߽ñ¤¤ä°ÌÃÖ»ØÄê¥ê¥¯¥¨¥¹¥È¤Ë¤è¤Ã¤ÆÊѹ¹¤µ¤ì¤ë¡£
111 .\"O All input occurs
112 .\"O as if the characters were read by successive calls to the
114 .\"O function; all output takes place as if all characters were written by
115 .\"O successive calls to the
120 ´Ø¿ô¤ò¼¡¡¹¤Ë¸Æ¤Ó½Ð¤·¤Æʸ»ú¤òÆɤ߹þ¤ó¤À¤«¤Î¤è¤¦¤Ë¹Ô¤ï¤ì¤ë¡£
123 ´Ø¿ô¤ò¼¡¡¹¤Ë¸Æ¤Ó½Ð¤·¤Æʸ»ú¤ò½ñ¤¹þ¤ó¤À¤«¤Î¤è¤¦¤Ë¹Ô¤ï¤ì¤ë¡£
125 .\"O A file is disassociated from a stream by
129 .I ¥¯¥í¡¼¥º (close) ¤¹¤ë
130 ¤³¤È¤Ë¤è¤Ã¤Æ¡¢¤½¤Î¥Õ¥¡¥¤¥ë¤Ï¥¹¥È¥ê¡¼¥à¤«¤éÀÚ¤êÎ¥¤µ¤ì¤ë¡£
131 .\"O Output streams are flushed (any unwritten buffer contents are
132 .\"O transferred to the host environment) before the stream is disassociated from
134 ½ÐÎÏ¥¹¥È¥ê¡¼¥à¤Ï¡¢¤½¤Î¥¹¥È¥ê¡¼¥à¤¬¥Õ¥¡¥¤¥ë¤«¤éÀÚ¤êÎ¥¤µ¤ì¤ëÁ°¤Ë¥Õ¥é¥Ã¥·¥å¤µ¤ì¤ë
135 (½ñ¤¹þ¤Þ¤ì¤Æ¤¤¤Ê¤¤¤¹¤Ù¤Æ¤Î¥Ð¥Ã¥Õ¥¡¤ÎÆâÍƤ¬¥Û¥¹¥È´Ä¶¤ËžÁ÷¤µ¤ì¤ë)¡£
136 .\"O The value of a pointer to a
138 .\"O object is indeterminate after a file is closed (garbage).
140 ¥ª¥Ö¥¸¥§¥¯¥È¤Ø¤Î¥Ý¥¤¥ó¥¿¤ÎÃͤϡ¢
141 ¥Õ¥¡¥¤¥ë¤òÊĤ¸¤¿¸å¤Ç¤ÏÉÔ³ÎÄê¤Ë¤Ê¤ë (¥´¥ß¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¦)¡£
143 .\"O A file may be subsequently reopened, by the same or another program
144 .\"O execution, and its contents reclaimed or modified (if it can be
145 .\"O repositioned at the start).
146 ¥Õ¥¡¥¤¥ë¤Ï¤½¤Î¸å (Ʊ¤¸¤Þ¤¿¤ÏÊÌ¤Î¥×¥í¥°¥é¥à¤Ë¤è¤Ã¤Æ)
147 ºÆ¤Ó¥ª¡¼¥×¥ó¤µ¤ì¤ë¤³¤È¤â¤¢¤ê¡¢
148 ¤½¤ÎÆâÍƤ¬½¤Àµ¤µ¤ì¤¿¤êÊѹ¹¤µ¤ì¤¿¤ê¤¹¤ë
149 (¤½¤Î¥Õ¥¡¥¤¥ë¤ÇÀèƬ¤Ø¤Î°ÌÃÖ°ÜÆ°¤¬²Äǽ¤Ç¤¢¤ì¤Ð)¡£
150 .\"O If the main function returns to its original caller, or the
152 .\"O function is called, all open files are closed
153 .\"O (hence all output streams are
154 .\"O flushed) before program termination.
155 main ´Ø¿ô¤¬¤â¤È¤Î¸Æ¤Ó½Ð¤·Â¦¤ËÊ֤俤ꡢ
158 ¥×¥í¥°¥é¥à¤Î½ªÎ»¤ÎÁ°¤Ë
159 ¸½ºß³«¤¤¤Æ¤¤¤ë¤¹¤Ù¤Æ¤Î¥Õ¥¡¥¤¥ë¤ÏÊĤ¸¤é¤ì¤ë
160 (¤½¤Î·ë²Ì¡¢¤¹¤Ù¤Æ¤Î½ÐÎÏ¥¹¥È¥ê¡¼¥à¤Ï¥Õ¥é¥Ã¥·¥å¤µ¤ì¤ë)¡£
161 .\"O Other methods of program termination,
164 .\"O do not bother about closing files properly.
167 ¤Î¤è¤¦¤Ê¾¤ÎÊýË¡¤òÍѤ¤¤¿¾ì¹ç¤Ë¤Ï¡¢
168 ¥Õ¥¡¥¤¥ë¤¬Àµ¤·¤¯ÊĤ¸¤é¤ì¤ëÊݾڤϤʤ¤¡£
170 .\"O At program startup, three text streams are predefined and need not be
171 .\"O opened explicitly \(em
172 .\"O .I standard input
173 .\"O (for reading conventional input), \(em
174 .\"O .I standard output
175 .\"O (for writing conventional input), and
176 .\"O .I standard error
177 .\"O (for writing diagnostic output).
178 ¥×¥í¥°¥é¥à¤Îµ¯Æ°»þ¤Ë 3 ¸Ä¤Î¥Æ¥¥¹¥È¥¹¥È¥ê¡¼¥à¤¬Í½¤áÄêµÁ¤µ¤ì¤Æ¤ª¤ê¡¢
179 ¤½¤ì¤é¤ÏÌÀ¼¨Åª¤Ë³«¤¯É¬Íפ¬¤Ê¤¤¡£
181 .I ɸ½àÆþÎÏ (standard input)
182 (Ä̾ï¤ÎÆþÎϤòÆɤ߼è¤ë¤Î¤Ë»È¤¦)¡¢\(em
183 .I ɸ½à½ÐÎÏ (standard output)
184 (Ä̾ï¤Î½ÐÎϤò½ñ¤¹þ¤à¤Î¤Ë»È¤¦)¡¢
185 .I ɸ½à¥¨¥é¡¼½ÐÎÏ (standard error)
186 (¿ÇÃǽÐÎϤò½ñ¤¹þ¤à¤Î¤Ë»È¤¦) ¤Ç¤¢¤ë¡£
187 .\"O These streams are abbreviated
188 .\"O .IR stdin , stdout
195 ¤Èû½Ì¤·¤Æɽ¸½¤µ¤ì¤ë¡£
196 .\"O When opened, the standard error stream is not fully buffered; the standard
197 .\"O input and output streams are fully buffered if and only if the streams do
198 .\"O not to refer to an interactive device.
199 ¥ª¡¼¥×¥ó¤µ¤ì¤¿¤È¤¤Ë¤Ï¡¢
200 ɸ½à¥¨¥é¡¼¥¹¥È¥ê¡¼¥à¤Ï
201 ´°Á´¤Ë¤Ï¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
202 ɸ½àÆþÎÏ¥¹¥È¥ê¡¼¥à¤Èɸ½à½ÐÎÏ¥¹¥È¥ê¡¼¥à¤Ï¡¢
203 ¥¹¥È¥ê¡¼¥à¤¬¥¤¥ó¥¿¥é¥¯¥Æ¥£¥Ö¤Ê¥Ç¥Ð¥¤¥¹¤ò»²¾È¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢
204 ´°Á´¤Ë¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤µ¤ì¤Æ¤¤¤ë¡£
206 .\"O Output streams that refer to terminal devices are always line buffered by
207 .\"O default; pending output to such streams is written automatically whenever
208 .\"O an input stream that refers to a terminal device is read.
209 üËö¥Ç¥Ð¥¤¥¹¤ò»²¾È¤¹¤ë½ÐÎÏ¥¹¥È¥ê¡¼¥à¤Ï¡¢
210 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¾ï¤Ë¹Ôñ°Ì¤Ç¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤µ¤ì¤Æ¤¤¤ë¡£
211 ¤¿¤À¤·¤½¤Î¤è¤¦¤Ê¥¹¥È¥ê¡¼¥à¤Ë¤ª¤±¤ë¥Ð¥Ã¥Õ¥¡Æâ¤Î½ÐÎϤϡ¢
212 üËö¥Ç¥Ð¥¤¥¹¤ò»²¾È¤·¤Æ¤¤¤ëÆþÎÏ¥¹¥È¥ê¡¼¥à¤«¤é¤ÎÆɤ߹þ¤ß¤¬¤¢¤ë¤¿¤Ó¤Ë¡¢
213 ¼«Æ°Åª¤Ë½ñ¤¹þ¤Þ¤ì¤ë¡£
214 .\"O In cases where a
215 .\"O large amount of computation is done after printing part of a line on an
216 .\"O output terminal, it is necessary to
218 .\"O the standard output before going off and computing so that the output will
220 ½ÐÎÏüËö¤Ë¹Ô¤Î°ìÉô¤ò½ñ¤¹þ¤ó¤À¸å¤ÇÂçÎ̤η׻»¤ò¹Ô¤¦¾ì¹ç¡¢
221 ½ÐÎϤ¬É½¼¨¤µ¤ì¤ë¤è¤¦¤Ë¡¢·×»»¤Ë¼è¤ê¤«¤«¤ëÁ°¤Ëɸ½à½ÐÎϤËÂФ·¤Æ
223 ¤ò¼Â¹Ô¤¹¤ëɬÍפ¬¤¢¤ë¡£
227 .\"O library is a part of the library
229 .\"O and routines are automatically loaded as needed by the compilers
236 ¥é¥¤¥Ö¥é¥ê¤Î°ìÉô¤Ç¤¢¤ê¡¢¥ë¡¼¥Á¥ó¤Ï
241 ¤Ë¤è¤Ã¤ÆɬÍפʻþ¤Ë¼«Æ°Åª¤ËÆɤ߹þ¤Þ¤ì¤ë¡£
244 .\"O sections of the following manual pages indicate which include files are to
245 .\"O be used, what the compiler declaration for the function looks like and
246 .\"O which external variables are of interest.
247 ¸å½Ò¤¹¤ë man ¥Ú¡¼¥¸Ãæ¤Î¡Ö½ñ¼°¡×¤ÎÀá¤Ë¤Ï¡¢
248 ¤É¤Î¥¤¥ó¥¯¥ë¡¼¥É¥Õ¥¡¥¤¥ë¤ò»ÈÍѤ·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤«¡¢
249 ¤½¤Î´Ø¿ô¤Î¥³¥ó¥Ñ¥¤¥é¡¼Àë¸À¤Ï¤É¤Î¤è¤¦¤Ê¤â¤Î¤«¡¢
250 ¤É¤Î¤è¤¦¤Ê³°ÉôÊÑ¿ô¤¬´Ø·¸¤¹¤ë¤Î¤«¤¬¼¨¤µ¤ì¤Æ¤¤¤ë¡£
252 .\"O The following are defined as macros; these names may not be reused without
253 .\"O first removing their current definitions with
271 .\" Not on Linux: .BR fropen ,
272 .\" Not on Linux: .BR fwopen ,
281 ¤Ï¥Þ¥¯¥í¤È¤·¤ÆÄêµÁ¤µ¤ì¤Æ¤¤¤ë¡£
282 ¤³¤ì¤é¤Î̾Á°¤Ï¡¢¸½ºß¤ÎÄêµÁ¤ò
284 ¤Çºï½ü¤·¤Ê¤¤¸Â¤ê¡¢ºÆÍøÍѤ¹¤ë¤³¤È¤Ï¤Ç¤¤Ê¤¤¡£
285 .\"O Function versions of the macro functions
286 ¥Þ¥¯¥í´Ø¿ô¤Î´Ø¿ôÈǤȤ·¤Æ¡¢
295 .\"O exist and will be used if the macros definitions are explicitly removed.
297 ¥Þ¥¯¥í¤ÎÄêµÁ¤¬ÌÀ¼¨Åª¤Ë¾Ãµî¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢
298 ¤³¤ì¤é¤ò»ÈÍѤ¹¤ë¤³¤È¤Ë¤Ê¤ë¤À¤í¤¦¡£
299 .\"O .SS "List of Functions"
305 .\"O Function Description
308 .\"O clearerr check and reset stream status
309 .\"O fclose close a stream
310 .\"O fdopen stream open functions
311 .\"O feof check and reset stream status
312 .\"O ferror check and reset stream status
313 .\"O fflush flush a stream
314 clearerr ¥¹¥È¥ê¡¼¥à¤Î¾õÂ֤γÎǧ¤È¥ê¥»¥Ã¥È
315 fclose ¥¹¥È¥ê¡¼¥à¤ò¥¯¥í¡¼¥º¤¹¤ë
316 fdopen ¥¹¥È¥ê¡¼¥à¤ò¥ª¡¼¥×¥ó¤¹¤ë
317 feof ¥¹¥È¥ê¡¼¥à¤Î¾õÂ֤γÎǧ¤È¥ê¥»¥Ã¥È
318 ferror ¥¹¥È¥ê¡¼¥à¤Î¾õÂ֤γÎǧ¤È¥ê¥»¥Ã¥È
319 fflush ¥¹¥È¥ê¡¼¥à¤ò¥Õ¥é¥Ã¥·¥å¤¹¤ë
320 .\"O fgetc get next character or word from input stream
321 .\"O fgetpos reposition a stream
322 .\"O fgets get a line from a stream
323 .\"O fileno return the integer descriptor of the argument stream
324 .\"O fopen stream open functions
325 .\"O fprintf formatted output conversion
326 .\"O fpurge flush a stream
327 .\"O fputc output a character or word to a stream
328 .\"O fputs output a line to a stream
329 .\"O fread binary stream input/output
330 .\"O freopen stream open functions
331 fgetc ¼¡¤Îʸ»ú¤Þ¤¿¤Ï¸ì¤òÆþÎÏ¥¹¥È¥ê¡¼¥à¤«¤é³ÍÆÀ¤¹¤ë
332 fgetpos ¥¹¥È¥ê¡¼¥à¤Î°ÌÃÖ¤ò¼èÆÀ¤¹¤ë
333 .\"nakano ¢¬¸¶Ê¸°ã¤¦¤Î¤Ç¤Ï?
334 fgets ¥¹¥È¥ê¡¼¥à¤«¤é¹Ô¤ò¼èÆÀ¤¹¤ë
335 fileno °ú¤¿ô¤Ç¤¢¤ë¥¹¥È¥ê¡¼¥à¤ÎÀ°¿ôÃͤΥǥ£¥¹¥¯¥ê¥×¥¿¤òÊÖ¤¹
336 fopen ¥¹¥È¥ê¡¼¥à¤ò¥ª¡¼¥×¥ó¤¹¤ë
337 fprintf ½ñ¼°ÉÕ¤½ÐÎÏÊÑ´¹
338 fpurge ¥¹¥È¥ê¡¼¥à¤ò¥Õ¥é¥Ã¥·¥å¤¹¤ë
339 fputc ʸ»ú¤Þ¤¿¤Ï¸ì¤ò¥¹¥È¥ê¡¼¥à¤Ë½ÐÎϤ¹¤ë
340 fputs ¹Ô¤ò¥¹¥È¥ê¡¼¥à¤Ë½ÐÎϤ¹¤ë
341 fread ¥Ð¥¤¥Ê¥ê¡¼¥¹¥È¥ê¡¼¥àÆþ½ÐÎÏ
342 freopen ¥¹¥È¥ê¡¼¥à¤ò¥ª¡¼¥×¥ó¤¹¤ë
343 .\"O fscanf input format conversion
344 .\"O fseek reposition a stream
345 .\"O fsetpos reposition a stream
346 .\"O ftell reposition a stream
347 .\"O fwrite binary stream input/output
348 .\"O getc get next character or word from input stream
349 .\"O getchar get next character or word from input stream
350 .\"O gets get a line from a stream
351 .\"O getw get next character or word from input stream
352 fscanf ½ñ¼°ÉÕ¤ÆþÎÏÊÑ´¹
353 fseek ¥¹¥È¥ê¡¼¥à¤Î°ÌÃֻؼ¨»Ò¤ò°ÜÆ°¤¹¤ë
354 fsetpos ¥¹¥È¥ê¡¼¥à¤Î°ÌÃֻؼ¨»Ò¤ò°ÜÆ°¤¹¤ë
355 ftell ¥¹¥È¥ê¡¼¥à¤Î°ÌÃÖ¤ò¼èÆÀ¤¹¤ë
357 fwrite ¥Ð¥¤¥Ê¥ê¡¼¥¹¥È¥ê¡¼¥àÆþ½ÐÎÏ
358 getc ¼¡¤Îʸ»ú¤Þ¤¿¤Ï¸ì¤òÆþÎÏ¥¹¥È¥ê¡¼¥à¤«¤é¼èÆÀ¤¹¤ë
359 getchar ¼¡¤Îʸ»ú¤Þ¤¿¤Ï¸ì¤òÆþÎÏ¥¹¥È¥ê¡¼¥à¤«¤é¼èÆÀ¤¹¤ë
360 gets ¹Ô¤òÆþÎÏ¥¹¥È¥ê¡¼¥à¤«¤é¼èÆÀ¤¹¤ë
361 getw ¼¡¤Îʸ»ú¤Þ¤¿¤Ï¸ì¤òÆþÎÏ¥¹¥È¥ê¡¼¥à¤«¤é¼èÆÀ¤¹¤ë
362 .\"O mktemp make temporary filename (unique)
363 .\"O perror system error messages
364 .\"O printf formatted output conversion
365 .\"O putc output a character or word to a stream
366 .\"O putchar output a character or word to a stream
367 .\"O puts output a line to a stream
368 .\"O putw output a character or word to a stream
369 .\"O remove remove directory entry
370 .\"O rewind reposition a stream
371 .\"O scanf input format conversion
372 mktemp ¾¤È½Å¤Ê¤é¤Ê¤¤¥Æ¥ó¥Ý¥é¥ê¥Õ¥¡¥¤¥ë̾¤òºî¤ë
373 perror ¥·¥¹¥Æ¥à¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
374 printf ½ñ¼°ÉÕ¤½ÐÎÏÊÑ´¹
375 putc ʸ»ú¤Þ¤¿¤Ï¸ì¤ò¥¹¥È¥ê¡¼¥à¤Ë½ÐÎϤ¹¤ë
376 putchar ʸ»ú¤Þ¤¿¤Ï¸ì¤ò¥¹¥È¥ê¡¼¥à¤Ë½ÐÎϤ¹¤ë
377 puts ¹Ô¤ò¥¹¥È¥ê¡¼¥à¤Ë½ÐÎϤ¹¤ë
378 putw ʸ»ú¤Þ¤¿¤Ï¸ì¤ò¥¹¥È¥ê¡¼¥à¤Ë½ÐÎϤ¹¤ë
379 remove ¥Ç¥£¥ì¥¯¥È¥ê¥¨¥ó¥È¥ê¤òºï½ü¤¹¤ë
380 rewind ¥¹¥È¥ê¡¼¥à¤Î°ÌÃֻؼ¨»Ò¤ò°ÜÆ°¤¹¤ë
381 scanf ½ñ¼°ÉÕ¤ÆþÎÏÊÑ´¹
382 .\"O setbuf stream buffering operations
383 .\"O setbuffer stream buffering operations
384 .\"O setlinebuf stream buffering operations
385 .\"O setvbuf stream buffering operations
386 .\"O sprintf formatted output conversion
387 .\"O sscanf input format conversion
388 .\"O strerror system error messages
389 .\"O sys_errlist system error messages
390 .\"O sys_nerr system error messages
391 .\"O tempnam temporary file routines
392 .\"O tmpfile temporary file routines
393 .\"O tmpnam temporary file routines
394 .\"O ungetc un-get character from input stream
395 setbuf ¥¹¥È¥ê¡¼¥à¤Î¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤ÎÁàºî
396 setbuffer ¥¹¥È¥ê¡¼¥à¤Î¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤ÎÁàºî
397 setlinebuf ¥¹¥È¥ê¡¼¥à¤Î¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤ÎÁàºî
398 setvbuf ¥¹¥È¥ê¡¼¥à¤Î¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤ÎÁàºî
399 sprintf ½ñ¼°ÉÕ¤½ÐÎÏÊÑ´¹
400 sscanf ½ñ¼°ÉÕ¤ÆþÎÏÊÑ´¹
401 strerror ¥·¥¹¥Æ¥à¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
402 sys_errlist ¥·¥¹¥Æ¥à¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
403 sys_nerr ¥·¥¹¥Æ¥à¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
404 tempnam ¥Æ¥ó¥Ý¥é¥ê¥Õ¥¡¥¤¥ë¤ÎÁàºî
405 tmpfile ¥Æ¥ó¥Ý¥é¥ê¥Õ¥¡¥¤¥ë¤ÎÁàºî
406 tmpnam ¥Æ¥ó¥Ý¥é¥ê¥Õ¥¡¥¤¥ë¤ÎÁàºî
407 ungetc ÆþÎÏ¥¹¥È¥ê¡¼¥à¤Ø 1 ʸ»úÌ᤹¡£
408 .\"O vfprintf formatted output conversion
409 .\"O vfscanf input format conversion
410 .\"O vprintf formatted output conversion
411 .\"O vscanf input format conversion
412 .\"O vsprintf formatted output conversion
413 .\"O vsscanf input format conversion
414 vfprintf ½ñ¼°ÉÕ¤½ÐÎÏÊÑ´¹
415 vfscanf ½ñ¼°ÉÕ¤ÆþÎÏÊÑ´¹
416 vprintf ½ñ¼°ÉÕ¤½ÐÎÏÊÑ´¹
417 vscanf ½ñ¼°ÉÕ¤ÆþÎÏÊÑ´¹
418 vsprintf ½ñ¼°ÉÕ¤½ÐÎÏÊÑ´¹
419 vsscanf ½ñ¼°ÉÕ¤ÆþÎÏÊÑ´¹
421 .\"O .SH "CONFORMING TO"
425 .\"O library conforms to C89.
427 ¥é¥¤¥Ö¥é¥ê¤Ï C89 ¤Ë½àµò¤·¤Æ¤¤¤ë¡£
435 .BR unlocked_stdio (3)