Merge branch 'master' into special-blin
[romboot.git] / stdio.h
blobf3d0cd662186e5d0bf52a6cd9403343b3fc8c0f1
1 #include <stdarg.h>
3 struct FILE
4 {
5 bool active;
6 int (*put)(int); /* function to write one char to device */
7 int (*get)(); /* function to read one char from device */
8 };
10 #define FILEDESCS 8
12 FILE *fopen(int (*put)(int), int (*get)());
13 int fclose(FILE *fp);
15 int puts(const char *str);
16 int putc(int c);
17 int putchar(int c);
18 int getc();
20 int fputs(const char *str, FILE *fp);
21 int fputc(int c, FILE *fp);
22 int fgetc(FILE *fp);
23 int strlen(const char *str);
25 int fprintf(FILE *fp, const char *fmt, ...);
26 int vfprintf(FILE *fp, const char *fmt, va_list ap);
28 int printf(const char *fmt, ...);
30 extern FILE *stdout;
31 extern FILE *stdin;