/* stdio.h - definintions and constants for standard I/O functions */ /* avr specific values. Original saved under orig/ folder */ /* Prototypes for formatted input functions */ extern int32 _doscan(char *,int32 *, int32 (*)(void), int32 (*)(char), int32, int32); extern int32 sscanf(char *, char *, int32); extern int32 fscanf(int32, char *, int32); #define scanf(fmt, args) fscanf(CONSOLE, fmt, args) /* Definintion of standard input/ouput/error used with shell commands */ #define stdin ((proctab[currpid]).prdesc[0]) #define stdout ((proctab[currpid]).prdesc[1]) #define stderr ((proctab[currpid]).prdesc[2]) /* Prototypes for formatted output functions */ extern int fprintf(int, char *, ...); extern int printf(const char *, ...); extern int32 sprintf(char *, char *, ...); /* Prototypes for character input and output functions */ extern int32 fgetc(int); extern char *fgets(char *, int32, int32); extern int32 fputc(int32, int32); extern int32 fputs(char *, int32); extern int putchar(int c); extern int getchar(void);