Mercurial > ecos-v2_0-branch
diff 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 |
line wrap: on
line diff
--- a/packages/language/c/libc/current/include/stdio.h +++ b/packages/language/c/libc/current/include/stdio.h @@ -192,21 +192,22 @@ externC int fputc( int /* c */, FILE * /* stream */ ); externC int -fputs( const char * /* str */, FILE * /* stream */ ); +putc( int /* c */, FILE * /* stream */ ); -// no function equivalent is required for these, so we can just #define -// them +externC int +putchar( int /* c */ ); -#define getc( __stream ) fgetc( __stream ) - -#define getchar() fgetc( stdin ) +externC int +fputs( const char * /* str */, FILE * /* stream */ ); externC char * gets( char * ); -#define putc(__c, __stream) fputc(__c, __stream) +externC int +getc( FILE * /* stream */ ); -#define putchar(__c) fputc(__c, stdout) +externC int +getchar( void ); externC int puts( const char * /* str */ ); @@ -214,6 +215,13 @@ puts( const char * /* str */ ); externC int ungetc( int /* c */, FILE * /* stream */ ); +// no function equivalent is required for getchar() or putchar(), so we can +// just #define them + +#define getchar() fgetc( stdin ) + +#define putchar(__c) fputc(__c, stdout) + //======================================================================== // ISO C 7.9.8 Direct input/output functions
