OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man3 / stdio.3
1 .\" Copyright (c) 1990, 1991 Regents of the University of California.
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
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.
19 .\"
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
30 .\" SUCH DAMAGE.
31 .\"
32 .\"     @(#)stdio.3     6.5 (Berkeley) 5/6/91
33 .\"
34 .\" Converted for Linux, Mon Nov 29 16:07:22 1993, faith@cs.unc.edu
35 .\" Modified, 2001-12-26, aeb
36 .\"
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
46 .\"
47 .\"WORD: position indicator   °ÌÃֻؼ¨»Ò
48 .\"WORD: positioning requests °ÌÃÖ»ØÄê¥ê¥¯¥¨¥¹¥È
49 .\"
50 .TH STDIO 3  2001-12-26 "" "Linux Programmer's Manual"
51 .\"O .SH NAME
52 .SH Ì¾Á°
53 .\"O stdio \- standard input/output library functions
54 stdio \- É¸½àÆþ½ÐÎϥ饤¥Ö¥é¥ê´Ø¿ô
55 .\"O .SH SYNOPSIS
56 .SH ½ñ¼°
57 .B #include <stdio.h>
58 .sp
59 .BI "FILE *" stdin ;
60 .br
61 .BI "FILE *" stdout ;
62 .br
63 .BI "FILE *" stderr ;
64 .\"O .SH DESCRIPTION
65 .SH ÀâÌÀ
66 .\"O The standard I/O library provides a simple and efficient buffered stream
67 .\"O I/O interface.
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 ¥Ú¡¼¥¸¤«¤éÆÀ¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
78 .PP
79 .\"O A stream is associated with an external file (which may be a physical
80 .\"O device) by
81 .\"O .I opening
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.
85 ¥Õ¥¡¥¤¥ë¤ò
86 .I ¥ª¡¼¥×¥ó (open) ¤¹¤ë
87 ¤³¤È¤Ë¤è¤Ã¤Æ¡¢
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.
109 °ÌÃֻؼ¨»Ò¤Ï¡¢
110 °Ê¹ß¤ÎÆɤ߽ñ¤­¤ä°ÌÃÖ»ØÄê¥ê¥¯¥¨¥¹¥È¤Ë¤è¤Ã¤ÆÊѹ¹¤µ¤ì¤ë¡£
111 .\"O All input occurs
112 .\"O as if the characters were read by successive calls to the
113 .\"O .BR fgetc (3)
114 .\"O function; all output takes place as if all characters were written by
115 .\"O successive calls to the
116 .\"O .BR fputc (3)
117 .\"O function.
118 ¤¹¤Ù¤Æ¤ÎÆþÎϤϡ¢
119 .BR fgetc (3)
120 ´Ø¿ô¤ò¼¡¡¹¤Ë¸Æ¤Ó½Ð¤·¤Æʸ»ú¤òÆɤ߹þ¤ó¤À¤«¤Î¤è¤¦¤Ë¹Ô¤ï¤ì¤ë¡£
121 °ìÊý¤¹¤Ù¤Æ¤Î½ÐÎϤϡ¢
122 .BR fputc (3)
123 ´Ø¿ô¤ò¼¡¡¹¤Ë¸Æ¤Ó½Ð¤·¤Æʸ»ú¤ò½ñ¤­¹þ¤ó¤À¤«¤Î¤è¤¦¤Ë¹Ô¤ï¤ì¤ë¡£
124 .PP
125 .\"O A file is disassociated from a stream by
126 .\"O .I closing
127 .\"O the file.
128 ¥Õ¥¡¥¤¥ë¤ò
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
133 .\"O the file.
134 ½ÐÎÏ¥¹¥È¥ê¡¼¥à¤Ï¡¢¤½¤Î¥¹¥È¥ê¡¼¥à¤¬¥Õ¥¡¥¤¥ë¤«¤éÀÚ¤êÎ¥¤µ¤ì¤ëÁ°¤Ë¥Õ¥é¥Ã¥·¥å¤µ¤ì¤ë
135 (½ñ¤­¹þ¤Þ¤ì¤Æ¤¤¤Ê¤¤¤¹¤Ù¤Æ¤Î¥Ð¥Ã¥Õ¥¡¤ÎÆâÍƤ¬¥Û¥¹¥È´Ä¶­¤ËžÁ÷¤µ¤ì¤ë)¡£
136 .\"O The value of a pointer to a
137 .\"O .I FILE
138 .\"O object is indeterminate after a file is closed (garbage).
139 .I FILE
140 ¥ª¥Ö¥¸¥§¥¯¥È¤Ø¤Î¥Ý¥¤¥ó¥¿¤ÎÃͤϡ¢
141 ¥Õ¥¡¥¤¥ë¤òÊĤ¸¤¿¸å¤Ç¤ÏÉÔ³ÎÄê¤Ë¤Ê¤ë (¥´¥ß¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¦)¡£
142 .PP
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
151 .\"O .BR exit (3)
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 ´Ø¿ô¤¬¤â¤È¤Î¸Æ¤Ó½Ð¤·Â¦¤ËÊ֤俤ꡢ
156 .BR exit (3)
157 ´Ø¿ô¤¬¸Æ¤Ð¤ì¤¿¾ì¹ç¡¢
158 ¥×¥í¥°¥é¥à¤Î½ªÎ»¤ÎÁ°¤Ë
159 ¸½ºß³«¤¤¤Æ¤¤¤ë¤¹¤Ù¤Æ¤Î¥Õ¥¡¥¤¥ë¤ÏÊĤ¸¤é¤ì¤ë
160 (¤½¤Î·ë²Ì¡¢¤¹¤Ù¤Æ¤Î½ÐÎÏ¥¹¥È¥ê¡¼¥à¤Ï¥Õ¥é¥Ã¥·¥å¤µ¤ì¤ë)¡£
161 .\"O Other methods of program termination,
162 .\"O such as
163 .\"O .BR abort (3)
164 .\"O do not bother about closing files properly.
165 ¥×¥í¥°¥é¥à¤ÎÄä»ß¤Ë
166 .BR abort (3)
167 ¤Î¤è¤¦¤Ê¾¤ÎÊýË¡¤òÍѤ¤¤¿¾ì¹ç¤Ë¤Ï¡¢
168 ¥Õ¥¡¥¤¥ë¤¬Àµ¤·¤¯ÊĤ¸¤é¤ì¤ëÊݾڤϤʤ¤¡£
169 .PP
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 ¤½¤ì¤é¤ÏÌÀ¼¨Åª¤Ë³«¤¯É¬Íפ¬¤Ê¤¤¡£
180 \(em
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
189 .\"O and
190 .\"O .IR stderr .
191 ¤³¤ì¤é¤Î¥¹¥È¥ê¡¼¥à¤Ï
192 .IR stdin ,
193 .IR stdout ,
194 .I stderr
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 ´°Á´¤Ë¥Ð¥Ã¥Õ¥¡¥ê¥ó¥°¤µ¤ì¤Æ¤¤¤ë¡£
205 .PP
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
217 .\"O .BR fflush (3)
218 .\"O the standard output before going off and computing so that the output will
219 .\"O appear.
220 ½ÐÎÏüËö¤Ë¹Ô¤Î°ìÉô¤ò½ñ¤­¹þ¤ó¤À¸å¤ÇÂçÎ̤η׻»¤ò¹Ô¤¦¾ì¹ç¡¢
221 ½ÐÎϤ¬É½¼¨¤µ¤ì¤ë¤è¤¦¤Ë¡¢·×»»¤Ë¼è¤ê¤«¤«¤ëÁ°¤Ëɸ½à½ÐÎϤËÂФ·¤Æ
222 .BR fflush (3)
223 ¤ò¼Â¹Ô¤¹¤ëɬÍפ¬¤¢¤ë¡£
224 .PP
225 .\"O The
226 .\"O .I stdio
227 .\"O library is a part of the library
228 .\"O .B libc
229 .\"O and routines are automatically loaded as needed by the compilers
230 .\"O .BR cc (1)
231 .\"O and
232 .\"O .BR pc (1).
233 .I stdio
234 ¥é¥¤¥Ö¥é¥ê¤Ï
235 .B libc
236 ¥é¥¤¥Ö¥é¥ê¤Î°ìÉô¤Ç¤¢¤ê¡¢¥ë¡¼¥Á¥ó¤Ï
237 ¥³¥ó¥Ñ¥¤¥é¡¼
238 .BR cc (1)
239 ¤È
240 .BR pc (1)
241 ¤Ë¤è¤Ã¤ÆɬÍפʻþ¤Ë¼«Æ°Åª¤ËÆɤ߹þ¤Þ¤ì¤ë¡£
242 .\"O The
243 .\"O SYNOPSIS
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 ¤É¤Î¤è¤¦¤Ê³°ÉôÊÑ¿ô¤¬´Ø·¸¤¹¤ë¤Î¤«¤¬¼¨¤µ¤ì¤Æ¤¤¤ë¡£
251 .PP
252 .\"O The following are defined as macros; these names may not be reused without
253 .\"O first removing their current definitions with
254 .\"O .BR #undef :
255 .BR BUFSIZ ,
256 .BR EOF ,
257 .BR FILENAME_MAX ,
258 .BR FOPEN_MAX ,
259 .BR L_cuserid ,
260 .BR L_ctermid ,
261 .BR L_tmpnam ,
262 .BR NULL ,
263 .BR SEEK_END ,
264 .BR SEEK_SET ,
265 .BR SEEK_CUR ,
266 .BR TMP_MAX ,
267 .BR clearerr ,
268 .BR feof ,
269 .BR ferror ,
270 .BR fileno ,
271 .\" Not on Linux: .BR fropen ,
272 .\" Not on Linux: .BR fwopen ,
273 .BR getc ,
274 .BR getchar ,
275 .BR putc ,
276 .BR putchar ,
277 .BR stderr ,
278 .BR stdin ,
279 .\"O .BR stdout .
280 .B stdout
281 ¤Ï¥Þ¥¯¥í¤È¤·¤ÆÄêµÁ¤µ¤ì¤Æ¤¤¤ë¡£
282 ¤³¤ì¤é¤Î̾Á°¤Ï¡¢¸½ºß¤ÎÄêµÁ¤ò
283 .B #undef
284 ¤Çºï½ü¤·¤Ê¤¤¸Â¤ê¡¢ºÆÍøÍѤ¹¤ë¤³¤È¤Ï¤Ç¤­¤Ê¤¤¡£
285 .\"O Function versions of the macro functions
286 ¥Þ¥¯¥í´Ø¿ô¤Î´Ø¿ôÈǤȤ·¤Æ¡¢
287 .BR feof ,
288 .BR ferror ,
289 .BR clearerr ,
290 .BR fileno ,
291 .BR getc ,
292 .BR getchar ,
293 .BR putc ,
294 .B putchar
295 .\"O exist and will be used if the macros definitions are explicitly removed.
296 ¤¬¤¢¤ë¡£
297 ¥Þ¥¯¥í¤ÎÄêµÁ¤¬ÌÀ¼¨Åª¤Ë¾Ãµî¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢
298 ¤³¤ì¤é¤ò»ÈÍѤ¹¤ë¤³¤È¤Ë¤Ê¤ë¤À¤í¤¦¡£
299 .\"O .SS "List of Functions"
300 .SS ´Ø¿ô¤Î¥ê¥¹¥È
301 .TS
302 ;
303 lb lb
304 lb l.
305 .\"O Function   Description
306 ´Ø¿ô    ÀâÌÀ
307 _
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   ¥¹¥È¥ê¡¼¥à¤Î°ÌÃÖ¤ò¼èÆÀ¤¹¤ë
356 .\"nakano ¢¬¤³¤ì¤â¡£
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 ½ñ¼°ÉÕ¤­ÆþÎÏÊÑ´¹
420 .TE
421 .\"O .SH "CONFORMING TO"
422 .SH ½àµò
423 .\"O The
424 .\"O .I stdio
425 .\"O library conforms to C89.
426 .I stdio
427 ¥é¥¤¥Ö¥é¥ê¤Ï C89 ¤Ë½àµò¤·¤Æ¤¤¤ë¡£
428 .\"O .SH "SEE ALSO"
429 .SH ´ØÏ¢¹àÌÜ
430 .BR close (2),
431 .BR open (2),
432 .BR read (2),
433 .BR write (2),
434 .BR stdout (3),
435 .BR unlocked_stdio (3)