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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [newlib/] [newlib/] [libc/] [stdio/] [stdio.tex] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
@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
* fclose::      Close a file
29
* feof::        Test for end of file
30
* ferror::      Test whether read/write error has occurred
31
* fflush::      Flush buffered file output
32
* fgetc::       Get a character from a file or stream
33
* fgetpos::     Record position in a stream or file
34
* fgets::       Get character string from a file or stream
35
* fiprintf::    Write formatted output to file (integer only)
36
* fopen::       Open a file
37
* fdopen::      Turn an open file into a stream
38
* fputc::       Write a character on a stream or file
39
* fputs::       Write a character string in a file or stream
40
* fread::       Read array elements from a file
41
* freopen::     Open a file using an existing file descriptor
42
* fseek::       Set file position
43
* fsetpos::     Restore position of a stream or file
44
* ftell::       Return position in a stream or file
45
* fwrite::      Write array elements from memory to a file or stream
46
* getc::        Get a character from a file or stream (macro)
47
* getchar::     Get a character from standard input (macro)
48
* gets::        Get character string from standard input (obsolete)
49
* iprintf::     Write formatted output (integer only)
50
* mktemp::      Generate unused file name
51
* perror::      Print an error message on standard error
52
* putc::        Write a character on a stream or file (macro)
53
* putchar::     Write a character on standard output (macro)
54
* puts::        Write a character string on standard output
55
* remove::      Delete a file's name
56
* rename::      Rename a file
57
* rewind::      Reinitialize a file or stream
58
* setbuf::      Specify full buffering for a file or stream
59
* setvbuf::     Specify buffering for a file or stream
60
* siprintf::    Write formatted output (integer only)
61
* printf::      Write formatted output
62
* scanf::       Scan and format input
63
* tmpfile::     Create a temporary file
64
* tmpnam::      Generate name for a temporary file
65
* vprintf::     Format variable argument list
66
@end menu
67
 
68
@page
69
@include stdio/clearerr.def
70
 
71
@page
72
@include stdio/fclose.def
73
 
74
@page
75
@include stdio/feof.def
76
 
77
@page
78
@include stdio/ferror.def
79
 
80
@page
81
@include stdio/fflush.def
82
 
83
@page
84
@include stdio/fgetc.def
85
 
86
@page
87
@include stdio/fgetpos.def
88
 
89
@page
90
@include stdio/fgets.def
91
 
92
@page
93
@include stdio/fiprintf.def
94
 
95
@page
96
@include stdio/fopen.def
97
 
98
@page
99
@include stdio/fdopen.def
100
 
101
@page
102
@include stdio/fputc.def
103
 
104
@page
105
@include stdio/fputs.def
106
 
107
@page
108
@include stdio/fread.def
109
 
110
@page
111
@include stdio/freopen.def
112
 
113
@page
114
@include stdio/fseek.def
115
 
116
@page
117
@include stdio/fsetpos.def
118
 
119
@page
120
@include stdio/ftell.def
121
 
122
@page
123
@include stdio/fwrite.def
124
 
125
@page
126
@include stdio/getc.def
127
 
128
@page
129
@include stdio/getchar.def
130
 
131
@page
132
@include stdio/gets.def
133
 
134
@page
135
@include stdio/iprintf.def
136
 
137
@page
138
@include stdio/mktemp.def
139
 
140
@page
141
@include stdio/perror.def
142
 
143
@page
144
@include stdio/putc.def
145
 
146
@page
147
@include stdio/putchar.def
148
 
149
@page
150
@include stdio/puts.def
151
 
152
@page
153
@include stdio/remove.def
154
 
155
@page
156
@include stdio/rename.def
157
 
158
@page
159
@include stdio/rewind.def
160
 
161
@page
162
@include stdio/setbuf.def
163
 
164
@page
165
@include stdio/setvbuf.def
166
 
167
@page
168
@include stdio/siprintf.def
169
 
170
@page
171
@include stdio/sprintf.def
172
 
173
@page
174
@include stdio/sscanf.def
175
 
176
@page
177
@include stdio/tmpfile.def
178
 
179
@page
180
@include stdio/tmpnam.def
181
 
182
@page
183
@include stdio/vfprintf.def

powered by: WebSVN 2.1.0

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