OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [stdio/] [stdio.tex] - Blame information for rev 207

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
@node Stdio
2
@chapter Input and Output (@file{stdio.h})
3
 
4
This chapter comprises functions to manage files
5
or other input/output streams. Among these functions are subroutines
6
to generate or scan strings according to specifications from a format string.
7
 
8
The underlying facilities for input and output depend on the host
9
system, but these functions provide a uniform interface.
10
 
11
The corresponding declarations are in @file{stdio.h}.
12
 
13
The reentrant versions of these functions use macros
14
 
15
@example
16
_stdin_r(@var{reent})
17
_stdout_r(@var{reent})
18
_stderr_r(@var{reent})
19
@end example
20
 
21
@noindent
22
instead of the globals @code{stdin}, @code{stdout}, and
23
@code{stderr}.  The argument <[reent]> is a pointer to a reentrancy
24
structure.
25
 
26
@menu
27
* clearerr::    Clear file or stream error indicator
28
* diprintf::    Print to a file descriptor (integer only)
29
* dprintf::     Print to a file descriptor
30
* fclose::      Close a file
31
* fcloseall::   Close all files
32
* fdopen::      Turn an open file into a stream
33
* feof::        Test for end of file
34
* ferror::      Test whether read/write error has occurred
35
* fflush::      Flush buffered file output
36
* fgetc::       Get a character from a file or stream
37
* fgetpos::     Record position in a stream or file
38
* fgets::       Get character string from a file or stream
39
* fgetwc::      Get a wide character from a file or stream
40
* fgetws::      Get a wide character string from a file or stream
41
* fileno::      Get file descriptor associated with stream
42
* fmemopen::    Open a stream around a fixed-length buffer
43
* fopen::       Open a file
44
* fopencookie:: Open a stream with custom callbacks
45
* fpurge::      Discard all pending I/O on a stream
46
* fputc::       Write a character on a stream or file
47
* fputs::       Write a character string in a file or stream
48
* fputwc::      Write a wide character to a file or stream
49
* fputws::      Write a wide character string to a file or stream
50
* fread::       Read array elements from a file
51
* freopen::     Open a file using an existing file descriptor
52
* fseek::       Set file position
53
* fsetpos::     Restore position of a stream or file
54
* ftell::       Return position in a stream or file
55
* funopen::     Open a stream with custom callbacks
56
* fwide::       Set and determine the orientation of a FILE stream
57
* fwrite::      Write array elements from memory to a file or stream
58
* getc::        Get a character from a file or stream (macro)
59
* getc_unlocked::       Get a character from a file or stream (macro)
60
* getchar::     Get a character from standard input (macro)
61
* getchar_unlocked::    Get a character from standard input (macro)
62
* getdelim::    Get character string from a file or stream
63
* getline::     Get character string from a file or stream
64
* gets::        Get character string from standard input (obsolete)
65
* getw::        Get a word (int) from a file or stream
66
* getwchar::    Get a wide character from standard input
67
* mktemp::      Generate unused file name
68
* open_memstream::      Open a write stream around an arbitrary-length buffer
69
* perror::      Print an error message on standard error
70
* putc::        Write a character on a stream or file (macro)
71
* putc_unlocked::       Write a character on a stream or file (macro)
72
* putchar::     Write a character on standard output (macro)
73
* putchar_unlocked::    Write a character on standard output (macro)
74
* puts::        Write a character string on standard output
75
* putw::        Write a word (int) to a file or stream
76
* putwchar::    Write a wide character to standard output
77
* remove::      Delete a file's name
78
* rename::      Rename a file
79
* rewind::      Reinitialize a file or stream
80
* setbuf::      Specify full buffering for a file or stream
81
* setbuffer::   Specify full buffering for a file or stream with size
82
* setlinebuf::  Specify line buffering for a file or stream
83
* setvbuf::     Specify buffering for a file or stream
84
* siprintf::    Write formatted output (integer only)
85
* siscanf::     Scan and format input (integer only)
86
* sprintf::     Write formatted output
87
* sscanf::      Scan and format input
88
* swprintf::    Write formatted wide character output
89
* swscanf::     Scan and format wide character input
90
* tmpfile::     Create a temporary file
91
* tmpnam::      Generate name for a temporary file
92
* ungetc::      Push data back into a stream
93
* ungetwc::     Push wide character data back into a stream
94
* vfprintf::    Format variable argument list
95
* vfscanf::     Scan variable argument list
96
* vfwprintf::   Format variable wide character argument list
97
* vfwscanf::    Scan and format argument list from wide character input
98
* viprintf::    Format variable argument list (integer only)
99
* viscanf::     Scan variable format list (integer only)
100
@end menu
101
 
102
@page
103
@include stdio/clearerr.def
104
 
105
@page
106
@include stdio/diprintf.def
107
 
108
@page
109
@include stdio/dprintf.def
110
 
111
@page
112
@include stdio/fclose.def
113
 
114
@page
115
@include stdio/fcloseall.def
116
 
117
@page
118
@include stdio/fdopen.def
119
 
120
@page
121
@include stdio/feof.def
122
 
123
@page
124
@include stdio/ferror.def
125
 
126
@page
127
@include stdio/fflush.def
128
 
129
@page
130
@include stdio/fgetc.def
131
 
132
@page
133
@include stdio/fgetpos.def
134
 
135
@page
136
@include stdio/fgets.def
137
 
138
@page
139
@include stdio/fgetwc.def
140
 
141
@page
142
@include stdio/fgetws.def
143
 
144
@page
145
@include stdio/fileno.def
146
 
147
@page
148
@include stdio/fmemopen.def
149
 
150
@page
151
@include stdio/fopen.def
152
 
153
@page
154
@include stdio/fopencookie.def
155
 
156
@page
157
@include stdio/fpurge.def
158
 
159
@page
160
@include stdio/fputc.def
161
 
162
@page
163
@include stdio/fputs.def
164
 
165
@page
166
@include stdio/fputwc.def
167
 
168
@page
169
@include stdio/fputws.def
170
 
171
@page
172
@include stdio/fread.def
173
 
174
@page
175
@include stdio/freopen.def
176
 
177
@page
178
@include stdio/fseek.def
179
 
180
@page
181
@include stdio/fsetpos.def
182
 
183
@page
184
@include stdio/ftell.def
185
 
186
@page
187
@include stdio/funopen.def
188
 
189
@page
190
@include stdio/fwide.def
191
 
192
@page
193
@include stdio/fwrite.def
194
 
195
@page
196
@include stdio/getc.def
197
 
198
@page
199
@include stdio/getc_u.def
200
 
201
@page
202
@include stdio/getchar.def
203
 
204
@page
205
@include stdio/getchar_u.def
206
 
207
@page
208
@include stdio/getdelim.def
209
 
210
@page
211
@include stdio/getline.def
212
 
213
@page
214
@include stdio/gets.def
215
 
216
@page
217
@include stdio/getw.def
218
 
219
@page
220
@include stdio/getwchar.def
221
 
222
@page
223
@include stdio/mktemp.def
224
 
225
@page
226
@include stdio/open_memstream.def
227
 
228
@page
229
@include stdio/perror.def
230
 
231
@page
232
@include stdio/putc.def
233
 
234
@page
235
@include stdio/putc_u.def
236
 
237
@page
238
@include stdio/putchar.def
239
 
240
@page
241
@include stdio/putchar_u.def
242
 
243
@page
244
@include stdio/puts.def
245
 
246
@page
247
@include stdio/putw.def
248
 
249
@page
250
@include stdio/putwchar.def
251
 
252
@page
253
@include stdio/remove.def
254
 
255
@page
256
@include stdio/rename.def
257
 
258
@page
259
@include stdio/rewind.def
260
 
261
@page
262
@include stdio/setbuf.def
263
 
264
@page
265
@include stdio/setbuffer.def
266
 
267
@page
268
@include stdio/setlinebuf.def
269
 
270
@page
271
@include stdio/setvbuf.def
272
 
273
@page
274
@include stdio/siprintf.def
275
 
276
@page
277
@include stdio/siscanf.def
278
 
279
@page
280
@include stdio/sprintf.def
281
 
282
@page
283
@include stdio/sscanf.def
284
 
285
@page
286
@include stdio/swprintf.def
287
 
288
@page
289
@include stdio/swscanf.def
290
 
291
@page
292
@include stdio/tmpfile.def
293
 
294
@page
295
@include stdio/tmpnam.def
296
 
297
@page
298
@include stdio/ungetc.def
299
 
300
@page
301
@include stdio/ungetwc.def
302
 
303
@page
304
@include stdio/vfprintf.def
305
 
306
@page
307
@include stdio/vfscanf.def
308
 
309
@page
310
@include stdio/vfwprintf.def
311
 
312
@page
313
@include stdio/vfwscanf.def
314
 
315
@page
316
@include stdio/viprintf.def
317
 
318
@page
319
@include stdio/viscanf.def

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.