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:
172 .\"O .I standard input
173 .\"O (for reading conventional input),
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 ¤½¤ì¤é¤ÏÌÀ¼¨Åª¤Ë³«¤¯É¬Íפ¬¤Ê¤¤¡£
180 .I ɸ½àÆþÎÏ (standard input)
181 (Ä̾ï¤ÎÆþÎϤòÆɤ߼è¤ë¤Î¤Ë»È¤¦)¡¢
182 .I ɸ½à½ÐÎÏ (standard output)
183 (Ä̾ï¤Î½ÐÎϤò½ñ¤¹þ¤à¤Î¤Ë»È¤¦)¡¢
184 .I ɸ½à¥¨¥é¡¼½ÐÎÏ (standard error)
185 (¿ÇÃǽÐÎϤò½ñ¤¹þ¤à¤Î¤Ë»È¤¦) ¤Ç¤¢¤ë¡£
186 .\"O These streams are abbreviated
187 .\"O .IR stdin , stdout
194 ¤Èû½Ì¤·¤Æɽ¸½¤µ¤ì¤ë¡£
195 .\"O When opened, the standard error stream is not fully buffered; the standard
196 .\"O input and output streams are fully buffered if and only if the streams do
197 .\"O not to refer to an interactive device.
198 ¥ª¡¼¥×¥ó¤µ¤ì¤¿¤È¤¤Ë¤Ï¡¢
199 ɸ½à¥¨¥é¡¼¥¹¥È¥ê¡¼¥à¤Ï
200 ´°Á´¤Ë¤Ï¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
201 ɸ½àÆþÎÏ¥¹¥È¥ê¡¼¥à¤Èɸ½à½ÐÎÏ¥¹¥È¥ê¡¼¥à¤Ï¡¢
202 ¥¹¥È¥ê¡¼¥à¤¬¥¤¥ó¥¿¥é¥¯¥Æ¥£¥Ö¤Ê¥Ç¥Ð¥¤¥¹¤ò»²¾È¤·¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢
203 ´°Á´¤Ë¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤µ¤ì¤Æ¤¤¤ë¡£
205 .\"O Output streams that refer to terminal devices are always line buffered by
206 .\"O default; pending output to such streams is written automatically whenever
207 .\"O an input stream that refers to a terminal device is read.
208 üËö¥Ç¥Ð¥¤¥¹¤ò»²¾È¤¹¤ë½ÐÎÏ¥¹¥È¥ê¡¼¥à¤Ï¡¢
209 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¾ï¤Ë¹Ôñ°Ì¤Ç¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤µ¤ì¤Æ¤¤¤ë¡£
210 ¤¿¤À¤·¤½¤Î¤è¤¦¤Ê¥¹¥È¥ê¡¼¥à¤Ë¤ª¤±¤ë¥Ð¥Ã¥Õ¥¡Æâ¤Î½ÐÎϤϡ¢
211 üËö¥Ç¥Ð¥¤¥¹¤ò»²¾È¤·¤Æ¤¤¤ëÆþÎÏ¥¹¥È¥ê¡¼¥à¤«¤é¤ÎÆɤ߹þ¤ß¤¬¤¢¤ë¤¿¤Ó¤Ë¡¢
212 ¼«Æ°Åª¤Ë½ñ¤¹þ¤Þ¤ì¤ë¡£
213 .\"O In cases where a
214 .\"O large amount of computation is done after printing part of a line on an
215 .\"O output terminal, it is necessary to
217 .\"O the standard output before going off and computing so that the output will
219 ½ÐÎÏüËö¤Ë¹Ô¤Î°ìÉô¤ò½ñ¤¹þ¤ó¤À¸å¤ÇÂçÎ̤η׻»¤ò¹Ô¤¦¾ì¹ç¡¢
220 ½ÐÎϤ¬É½¼¨¤µ¤ì¤ë¤è¤¦¤Ë¡¢·×»»¤Ë¼è¤ê¤«¤«¤ëÁ°¤Ëɸ½à½ÐÎϤËÂФ·¤Æ
222 ¤ò¼Â¹Ô¤¹¤ëɬÍפ¬¤¢¤ë¡£
226 .\"O library is a part of the library
228 .\"O and routines are automatically loaded as needed by the compilers
235 ¥é¥¤¥Ö¥é¥ê¤Î°ìÉô¤Ç¤¢¤ê¡¢¥ë¡¼¥Á¥ó¤Ï
240 ¤Ë¤è¤Ã¤ÆɬÍפʻþ¤Ë¼«Æ°Åª¤ËÆɤ߹þ¤Þ¤ì¤ë¡£
243 .\"O sections of the following manual pages indicate which include files are to
244 .\"O be used, what the compiler declaration for the function looks like and
245 .\"O which external variables are of interest.
246 ¸å½Ò¤¹¤ë man ¥Ú¡¼¥¸Ãæ¤Î¡Ö½ñ¼°¡×¤ÎÀá¤Ë¤Ï¡¢
247 ¤É¤Î¥¤¥ó¥¯¥ë¡¼¥É¥Õ¥¡¥¤¥ë¤ò»ÈÍѤ·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤«¡¢
248 ¤½¤Î´Ø¿ô¤Î¥³¥ó¥Ñ¥¤¥é¡¼Àë¸À¤Ï¤É¤Î¤è¤¦¤Ê¤â¤Î¤«¡¢
249 ¤É¤Î¤è¤¦¤Ê³°ÉôÊÑ¿ô¤¬´Ø·¸¤¹¤ë¤Î¤«¤¬¼¨¤µ¤ì¤Æ¤¤¤ë¡£
251 .\"O The following are defined as macros; these names may not be reused without
252 .\"O first removing their current definitions with
270 .\" Not on Linux: .BR fropen ,
271 .\" Not on Linux: .BR fwopen ,
280 ¤Ï¥Þ¥¯¥í¤È¤·¤ÆÄêµÁ¤µ¤ì¤Æ¤¤¤ë¡£
281 ¤³¤ì¤é¤Î̾Á°¤Ï¡¢¸½ºß¤ÎÄêµÁ¤ò
283 ¤Çºï½ü¤·¤Ê¤¤¸Â¤ê¡¢ºÆÍøÍѤ¹¤ë¤³¤È¤Ï¤Ç¤¤Ê¤¤¡£
284 .\"O Function versions of the macro functions
285 ¥Þ¥¯¥í´Ø¿ô¤Î´Ø¿ôÈǤȤ·¤Æ¡¢
294 .\"O exist and will be used if the macros definitions are explicitly removed.
296 ¥Þ¥¯¥í¤ÎÄêµÁ¤¬ÌÀ¼¨Åª¤Ë¾Ãµî¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢
297 ¤³¤ì¤é¤ò»ÈÍѤ¹¤ë¤³¤È¤Ë¤Ê¤ë¤À¤í¤¦¡£
298 .\"O .SS "List of Functions"
304 .\"O Function Description
307 .\"O clearerr check and reset stream status
308 .\"O fclose close a stream
309 .\"O fdopen stream open functions
310 .\"O feof check and reset stream status
311 .\"O ferror check and reset stream status
312 .\"O fflush flush a stream
313 clearerr ¥¹¥È¥ê¡¼¥à¤Î¾õÂ֤γÎǧ¤È¥ê¥»¥Ã¥È
314 fclose ¥¹¥È¥ê¡¼¥à¤ò¥¯¥í¡¼¥º¤¹¤ë
315 fdopen ¥¹¥È¥ê¡¼¥à¤ò¥ª¡¼¥×¥ó¤¹¤ë
316 feof ¥¹¥È¥ê¡¼¥à¤Î¾õÂ֤γÎǧ¤È¥ê¥»¥Ã¥È
317 ferror ¥¹¥È¥ê¡¼¥à¤Î¾õÂ֤γÎǧ¤È¥ê¥»¥Ã¥È
318 fflush ¥¹¥È¥ê¡¼¥à¤ò¥Õ¥é¥Ã¥·¥å¤¹¤ë
319 .\"O fgetc get next character or word from input stream
320 .\"O fgetpos reposition a stream
321 .\"O fgets get a line from a stream
322 .\"O fileno return the integer descriptor of the argument stream
323 .\"O fopen stream open functions
324 .\"O fprintf formatted output conversion
325 .\"O fpurge flush a stream
326 .\"O fputc output a character or word to a stream
327 .\"O fputs output a line to a stream
328 .\"O fread binary stream input/output
329 .\"O freopen stream open functions
330 fgetc ¼¡¤Îʸ»ú¤Þ¤¿¤Ï¸ì¤òÆþÎÏ¥¹¥È¥ê¡¼¥à¤«¤é³ÍÆÀ¤¹¤ë
331 fgetpos ¥¹¥È¥ê¡¼¥à¤Î°ÌÃÖ¤ò¼èÆÀ¤¹¤ë
332 .\"nakano ¢¬¸¶Ê¸°ã¤¦¤Î¤Ç¤Ï?
333 fgets ¥¹¥È¥ê¡¼¥à¤«¤é¹Ô¤ò¼èÆÀ¤¹¤ë
334 fileno °ú¤¿ô¤Ç¤¢¤ë¥¹¥È¥ê¡¼¥à¤ÎÀ°¿ôÃͤΥǥ£¥¹¥¯¥ê¥×¥¿¤òÊÖ¤¹
335 fopen ¥¹¥È¥ê¡¼¥à¤ò¥ª¡¼¥×¥ó¤¹¤ë
336 fprintf ½ñ¼°ÉÕ¤½ÐÎÏÊÑ´¹
337 fpurge ¥¹¥È¥ê¡¼¥à¤ò¥Õ¥é¥Ã¥·¥å¤¹¤ë
338 fputc ʸ»ú¤Þ¤¿¤Ï¸ì¤ò¥¹¥È¥ê¡¼¥à¤Ë½ÐÎϤ¹¤ë
339 fputs ¹Ô¤ò¥¹¥È¥ê¡¼¥à¤Ë½ÐÎϤ¹¤ë
340 fread ¥Ð¥¤¥Ê¥ê¡¼¥¹¥È¥ê¡¼¥àÆþ½ÐÎÏ
341 freopen ¥¹¥È¥ê¡¼¥à¤ò¥ª¡¼¥×¥ó¤¹¤ë
342 .\"O fscanf input format conversion
343 .\"O fseek reposition a stream
344 .\"O fsetpos reposition a stream
345 .\"O ftell reposition a stream
346 .\"O fwrite binary stream input/output
347 .\"O getc get next character or word from input stream
348 .\"O getchar get next character or word from input stream
349 .\"O gets get a line from a stream
350 .\"O getw get next character or word from input stream
351 fscanf ½ñ¼°ÉÕ¤ÆþÎÏÊÑ´¹
352 fseek ¥¹¥È¥ê¡¼¥à¤Î°ÌÃֻؼ¨»Ò¤ò°ÜÆ°¤¹¤ë
353 fsetpos ¥¹¥È¥ê¡¼¥à¤Î°ÌÃֻؼ¨»Ò¤ò°ÜÆ°¤¹¤ë
354 ftell ¥¹¥È¥ê¡¼¥à¤Î°ÌÃÖ¤ò¼èÆÀ¤¹¤ë
356 fwrite ¥Ð¥¤¥Ê¥ê¡¼¥¹¥È¥ê¡¼¥àÆþ½ÐÎÏ
357 getc ¼¡¤Îʸ»ú¤Þ¤¿¤Ï¸ì¤òÆþÎÏ¥¹¥È¥ê¡¼¥à¤«¤é¼èÆÀ¤¹¤ë
358 getchar ¼¡¤Îʸ»ú¤Þ¤¿¤Ï¸ì¤òÆþÎÏ¥¹¥È¥ê¡¼¥à¤«¤é¼èÆÀ¤¹¤ë
359 gets ¹Ô¤òÆþÎÏ¥¹¥È¥ê¡¼¥à¤«¤é¼èÆÀ¤¹¤ë
360 getw ¼¡¤Îʸ»ú¤Þ¤¿¤Ï¸ì¤òÆþÎÏ¥¹¥È¥ê¡¼¥à¤«¤é¼èÆÀ¤¹¤ë
361 .\"O mktemp make temporary filename (unique)
362 .\"O perror system error messages
363 .\"O printf formatted output conversion
364 .\"O putc output a character or word to a stream
365 .\"O putchar output a character or word to a stream
366 .\"O puts output a line to a stream
367 .\"O putw output a character or word to a stream
368 .\"O remove remove directory entry
369 .\"O rewind reposition a stream
370 .\"O scanf input format conversion
371 mktemp ¾¤È½Å¤Ê¤é¤Ê¤¤¥Æ¥ó¥Ý¥é¥ê¥Õ¥¡¥¤¥ë̾¤òºî¤ë
372 perror ¥·¥¹¥Æ¥à¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
373 printf ½ñ¼°ÉÕ¤½ÐÎÏÊÑ´¹
374 putc ʸ»ú¤Þ¤¿¤Ï¸ì¤ò¥¹¥È¥ê¡¼¥à¤Ë½ÐÎϤ¹¤ë
375 putchar ʸ»ú¤Þ¤¿¤Ï¸ì¤ò¥¹¥È¥ê¡¼¥à¤Ë½ÐÎϤ¹¤ë
376 puts ¹Ô¤ò¥¹¥È¥ê¡¼¥à¤Ë½ÐÎϤ¹¤ë
377 putw ʸ»ú¤Þ¤¿¤Ï¸ì¤ò¥¹¥È¥ê¡¼¥à¤Ë½ÐÎϤ¹¤ë
378 remove ¥Ç¥£¥ì¥¯¥È¥ê¥¨¥ó¥È¥ê¤òºï½ü¤¹¤ë
379 rewind ¥¹¥È¥ê¡¼¥à¤Î°ÌÃֻؼ¨»Ò¤ò°ÜÆ°¤¹¤ë
380 scanf ½ñ¼°ÉÕ¤ÆþÎÏÊÑ´¹
381 .\"O setbuf stream buffering operations
382 .\"O setbuffer stream buffering operations
383 .\"O setlinebuf stream buffering operations
384 .\"O setvbuf stream buffering operations
385 .\"O sprintf formatted output conversion
386 .\"O sscanf input format conversion
387 .\"O strerror system error messages
388 .\"O sys_errlist system error messages
389 .\"O sys_nerr system error messages
390 .\"O tempnam temporary file routines
391 .\"O tmpfile temporary file routines
392 .\"O tmpnam temporary file routines
393 .\"O ungetc un-get character from input stream
394 setbuf ¥¹¥È¥ê¡¼¥à¤Î¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤ÎÁàºî
395 setbuffer ¥¹¥È¥ê¡¼¥à¤Î¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤ÎÁàºî
396 setlinebuf ¥¹¥È¥ê¡¼¥à¤Î¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤ÎÁàºî
397 setvbuf ¥¹¥È¥ê¡¼¥à¤Î¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤ÎÁàºî
398 sprintf ½ñ¼°ÉÕ¤½ÐÎÏÊÑ´¹
399 sscanf ½ñ¼°ÉÕ¤ÆþÎÏÊÑ´¹
400 strerror ¥·¥¹¥Æ¥à¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
401 sys_errlist ¥·¥¹¥Æ¥à¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
402 sys_nerr ¥·¥¹¥Æ¥à¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸
403 tempnam ¥Æ¥ó¥Ý¥é¥ê¥Õ¥¡¥¤¥ë¤ÎÁàºî
404 tmpfile ¥Æ¥ó¥Ý¥é¥ê¥Õ¥¡¥¤¥ë¤ÎÁàºî
405 tmpnam ¥Æ¥ó¥Ý¥é¥ê¥Õ¥¡¥¤¥ë¤ÎÁàºî
406 ungetc ÆþÎÏ¥¹¥È¥ê¡¼¥à¤Ø 1 ʸ»úÌ᤹¡£
407 .\"O vfprintf formatted output conversion
408 .\"O vfscanf input format conversion
409 .\"O vprintf formatted output conversion
410 .\"O vscanf input format conversion
411 .\"O vsprintf formatted output conversion
412 .\"O vsscanf input format conversion
413 vfprintf ½ñ¼°ÉÕ¤½ÐÎÏÊÑ´¹
414 vfscanf ½ñ¼°ÉÕ¤ÆþÎÏÊÑ´¹
415 vprintf ½ñ¼°ÉÕ¤½ÐÎÏÊÑ´¹
416 vscanf ½ñ¼°ÉÕ¤ÆþÎÏÊÑ´¹
417 vsprintf ½ñ¼°ÉÕ¤½ÐÎÏÊÑ´¹
418 vsscanf ½ñ¼°ÉÕ¤ÆþÎÏÊÑ´¹
420 .\"O .SH "CONFORMING TO"
424 .\"O library conforms to C89.
426 ¥é¥¤¥Ö¥é¥ê¤Ï C89 ¤Ë½àµò¤·¤Æ¤¤¤ë¡£
434 .BR unlocked_stdio (3)