4 * Ullrich von Bassewitz, 30.05.1998
25 typedef struct _FILE FILE;
26 typedef unsigned long fpos_t;
28 /* Standard file descriptors */
33 /* Standard defines */
39 #define FILENAME_MAX 16
41 #define L_tmpnam (FILENAME_MAX + 1)
50 void __fastcall__ clearerr (FILE* f);
52 int __fastcall__ feof (FILE* f);
53 int __fastcall__ ferror (FILE* f);
54 int __fastcall__ fflush (FILE* f);
56 char* fgets (char* buf, size_t size, FILE* f);
57 FILE* fopen (const char* name, const char* mode);
58 int fprintf (FILE* f, const char* format, ...);
59 int fputc (int c, FILE* f);
60 int fputs (const char* s, FILE* f);
61 size_t fread (void* buf, size_t size, size_t count, FILE* f);
62 FILE* freopen (const char* name, const char* mode, FILE* f);
63 size_t fwrite (const void* buf, size_t size, size_t count, FILE* f);
66 void perror (const char* s);
67 int printf (const char* format, ...);
69 int puts (const char* s);
70 int remove (const char* name);
71 int rename (const char* old, const char* new);
72 int sprintf (char* buf, const char* format, ...);
73 int vfprintf (FILE* f, const char* format, va_list ap);
74 int vprintf (const char* format, va_list ap);
75 int vsprintf (char* buf, const char* format, va_list ap);
77 #ifndef __STRICT_ANSI__
78 FILE* fdopen (int fd, const char* mode); /* Unix */
79 int __fastcall__ fileno (FILE* f); /* Unix */
83 /* Masking macros for some functions */
84 #define getchar() fgetc (stdin) /* ANSI */
85 #define putchar(c) fputc (c, stdout) /* ANSI */
86 #define getc(f) fgetc (f) /* ANSI */
87 #define putc(c, f) fputc (c, f) /* ANSI */
89 /* Non-standard function like macros */
90 #ifndef __STRICT_ANSI__
91 #define flushall() /* Unix */
92 #define unlink(name) remove (name) /* Unix */