/* The following are platform-dependant, and defined in _PDCLIB_config.h. */
typedef _PDCLIB_fpos_t fpos_t;
-//typedef struct _PDCLIB_file_t FILE;
+typedef struct _PDCLIB_file_t FILE;
#define EOF -1
#define BUFSIZ _PDCLIB_BUFSIZ
#define FOPEN_MAX _PDCLIB_FOPEN_MAX
#define SEEK_END 2
#define SEEK_SET 4
-//extern FILE * stdin;
-//extern FILE * stdout;
-//extern FILE * stderr;
+extern struct _PDCLIB_file_t * stdin;
+extern struct _PDCLIB_file_t * stdout;
+extern struct _PDCLIB_file_t * stderr;
/* Operations on files */
/* Equivalent to fputc( c, stdout ), but may be implemented as a macro that
evaluates its parameter more than once.
*/
-int putchar( int c );
+#define putchar( c ) putc( c, stdout )
/* Write the string s (not including the terminating \0) to stdout, and append
a newline to the output. Returns a value >= 0 when successful, EOF if a