home *** CD-ROM | disk | FTP | other *** search
- #include <dos/dos.h>
-
- struct __FILE
- {
- BPTR file;
- int error;
- };
-
- typedef struct __FILE FILE;
-
- extern void __initstdio(void); /* Funktion zum Initialisieren der stdio */
- extern void __exitstdio(void); /* Funktion zum Schließen evtl. geöffneter files */
-
- static void (*a)(void)=&__initstdio;
- static void (*b)(void)=&__exitstdio;
-
- static FILE __stdin ={ NULL,0 },
- __stdout={ NULL,0 },
- __stderr={ NULL,0 };
-
- FILE *stdin=&__stdin;
- FILE *stdout=&__stdout;
- FILE *stderr=&__stderr;
-