OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 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
* fputc::       Write a character on a stream or file
46
* fputs::       Write a character string in a file or stream
47
* fputwc::      Write a wide character to a file or stream
48
* fputws::      Write a wide character string to a file or stream
49
* fread::       Read array elements from a file
50
* freopen::     Open a file using an existing file descriptor
51
* fseek::       Set file position
52
* fsetpos::     Restore position of a stream or file
53
* ftell::       Return position in a stream or file
54
* funopen::     Open a stream with custom callbacks
55
* fwide::       Set and determine the orientation of a FILE stream
56
* fwrite::      Write array elements from memory to a file or stream
57
* getc::        Get a character from a file or stream (macro)
58
* getc_unlocked::       Get a character from a file or stream (macro)
59
* getchar::     Get a character from standard input (macro)
60
* getchar_unlocked::    Get a character from standard input (macro)
61
* getdelim::    Get character string from a file or stream
62
* getline::     Get character string from a file or stream
63
* gets::        Get character string from standard input (obsolete)
64
* getw::        Get a word (int) from a file or stream
65
* getwchar::    Get a wide character from standard input
66
* mktemp::      Generate unused file name
67
* open_memstream::      Open a write stream around an arbitrary-length buffer
68
* perror::      Print an error message on standard error
69
* putc::        Write a character on a stream or file (macro)
70
* putc_unlocked::       Write a character on a stream or file (macro)
71
* putchar::     Write a character on standard output (macro)
72
* putchar_unlocked::    Write a character on standard output (macro)
73
* puts::        Write a character string on standard output
74
* putw::        Write a word (int) to a file or stream
75
* putwchar::    Write a wide character to standard output
76
* remove::      Delete a file's name
77
* rename::      Rename a file
78
* rewind::      Reinitialize a file or stream
79
* setbuf::      Specify full buffering for a file or stream
80
* setbuffer::   Specify full buffering for a file or stream with size
81
* setlinebuf::  Specify line buffering for a file or stream
82
* setvbuf::     Specify buffering for a file or stream
83
* siprintf::    Write formatted output (integer only)
84
* siscanf::     Scan and format input (integer only)
85
* sprintf::     Write formatted output
86
* sscanf::      Scan and format input
87
* tmpfile::     Create a temporary file
88
* tmpnam::      Generate name for a temporary file
89
* ungetc::      Push data back into a stream
90
* ungetwc::     Push wide character data back into a stream
91
* vfprintf::    Format variable argument list
92
* vfscanf::     Scan variable argument list
93
* viprintf::    Format variable argument list (integer only)
94
* viscanf::     Scan variable format list (integer only)
95
@end menu
96
 
97
@page
98
@include stdio/clearerr.def
99
 
100
@page
101
@include stdio/diprintf.def
102
 
103
@page
104
@include stdio/dprintf.def
105
 
106
@page
107
@include stdio/fclose.def
108
 
109
@page
110
@include stdio/fcloseall.def
111
 
112
@page
113
@include stdio/fdopen.def
114
 
115
@page
116
@include stdio/feof.def
117
 
118
@page
119
@include stdio/ferror.def
120
 
121
@page
122
@include stdio/fflush.def
123
 
124
@page
125
@include stdio/fgetc.def
126
 
127
@page
128
@include stdio/fgetpos.def
129
 
130
@page
131
@include stdio/fgets.def
132
 
133
@page
134
@include stdio/fgetwc.def
135
 
136
@page
137
@include stdio/fgetws.def
138
 
139
@page
140
@include stdio/fileno.def
141
 
142
@page
143
@include stdio/fmemopen.def
144
 
145
@page
146
@include stdio/fopen.def
147
 
148
@page
149
@include stdio/fopencookie.def
150
 
151
@page
152
@include stdio/fputc.def
153
 
154
@page
155
@include stdio/fputs.def
156
 
157
@page
158
@include stdio/fputwc.def
159
 
160
@page
161
@include stdio/fputws.def
162
 
163
@page
164
@include stdio/fread.def
165
 
166
@page
167
@include stdio/freopen.def
168
 
169
@page
170
@include stdio/fseek.def
171
 
172
@page
173
@include stdio/fsetpos.def
174
 
175
@page
176
@include stdio/ftell.def
177
 
178
@page
179
@include stdio/funopen.def
180
 
181
@page
182
@include stdio/fwide.def
183
 
184
@page
185
@include stdio/fwrite.def
186
 
187
@page
188
@include stdio/getc.def
189
 
190
@page
191
@include stdio/getc_u.def
192
 
193
@page
194
@include stdio/getchar.def
195
 
196
@page
197
@include stdio/getchar_u.def
198
 
199
@page
200
@include stdio/getdelim.def
201
 
202
@page
203
@include stdio/getline.def
204
 
205
@page
206
@include stdio/gets.def
207
 
208
@page
209
@include stdio/getw.def
210
 
211
@page
212
@include stdio/getwchar.def
213
 
214
@page
215
@include stdio/mktemp.def
216
 
217
@page
218
@include stdio/open_memstream.def
219
 
220
@page
221
@include stdio/perror.def
222
 
223
@page
224
@include stdio/putc.def
225
 
226
@page
227
@include stdio/putc_u.def
228
 
229
@page
230
@include stdio/putchar.def
231
 
232
@page
233
@include stdio/putchar_u.def
234
 
235
@page
236
@include stdio/puts.def
237
 
238
@page
239
@include stdio/putw.def
240
 
241
@page
242
@include stdio/putwchar.def
243
 
244
@page
245
@include stdio/remove.def
246
 
247
@page
248
@include stdio/rename.def
249
 
250
@page
251
@include stdio/rewind.def
252
 
253
@page
254
@include stdio/setbuf.def
255
 
256
@page
257
@include stdio/setbuffer.def
258
 
259
@page
260
@include stdio/setlinebuf.def
261
 
262
@page
263
@include stdio/setvbuf.def
264
 
265
@page
266
@include stdio/siprintf.def
267
 
268
@page
269
@include stdio/siscanf.def
270
 
271
@page
272
@include stdio/sprintf.def
273
 
274
@page
275
@include stdio/sscanf.def
276
 
277
@page
278
@include stdio/tmpfile.def
279
 
280
@page
281
@include stdio/tmpnam.def
282
 
283
@page
284
@include stdio/ungetc.def
285
 
286
@page
287
@include stdio/ungetwc.def
288
 
289
@page
290
@include stdio/vfprintf.def
291
 
292
@page
293
@include stdio/vfscanf.def
294
 
295
@page
296
@include stdio/viprintf.def
297
 
298
@page
299
@include stdio/viscanf.def

powered by: WebSVN 2.1.0

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