comparison packages/language/c/libc/current/include/stdio.h @ 26:4741a3c3496a ecos-sw-1999-07-23

Merge from eCos master repository on 1999-07-23-05:47:06-BST
author jlarmour
date Fri, 23 Jul 1999 15:20:15 +0000
parents 4f2df4ab82c8
children c38311975d4f
comparison
equal deleted inserted replaced
25:9444713147c6 26:4741a3c3496a
190 190
191 externC int 191 externC int
192 fputc( int /* c */, FILE * /* stream */ ); 192 fputc( int /* c */, FILE * /* stream */ );
193 193
194 externC int 194 externC int
195 putc( int /* c */, FILE * /* stream */ );
196
197 externC int
198 putchar( int /* c */ );
199
200 externC int
195 fputs( const char * /* str */, FILE * /* stream */ ); 201 fputs( const char * /* str */, FILE * /* stream */ );
196
197 // no function equivalent is required for these, so we can just #define
198 // them
199
200 #define getc( __stream ) fgetc( __stream )
201
202 #define getchar() fgetc( stdin )
203 202
204 externC char * 203 externC char *
205 gets( char * ); 204 gets( char * );
206 205
207 #define putc(__c, __stream) fputc(__c, __stream) 206 externC int
207 getc( FILE * /* stream */ );
208
209 externC int
210 getchar( void );
211
212 externC int
213 puts( const char * /* str */ );
214
215 externC int
216 ungetc( int /* c */, FILE * /* stream */ );
217
218 // no function equivalent is required for getchar() or putchar(), so we can
219 // just #define them
220
221 #define getchar() fgetc( stdin )
208 222
209 #define putchar(__c) fputc(__c, stdout) 223 #define putchar(__c) fputc(__c, stdout)
210
211 externC int
212 puts( const char * /* str */ );
213
214 externC int
215 ungetc( int /* c */, FILE * /* stream */ );
216 224
217 //======================================================================== 225 //========================================================================
218 226
219 // ISO C 7.9.8 Direct input/output functions 227 // ISO C 7.9.8 Direct input/output functions
220 228