2 |
#define PLIBC_STDIO_H |
#define PLIBC_STDIO_H |
3 |
|
|
4 |
#include "format.h" |
#include "format.h" |
5 |
|
#include "stddef.h" |
6 |
|
|
7 |
|
#define EOF (-1) |
8 |
|
|
9 |
|
typedef struct |
10 |
|
{ |
11 |
|
int fd; |
12 |
|
void *buf; |
13 |
|
size_t buf_size; |
14 |
|
int mode; |
15 |
|
} FILE; |
16 |
|
|
17 |
extern int printf (const char *fmt, ...) |
extern int printf (const char *fmt, ...) |
18 |
__attribute__ ((format (printf, 1, 2))); |
__attribute__ ((format (printf, 1, 2))); |
19 |
|
|
20 |
int puts (const char *str); |
int puts (const char *str); |
21 |
int putsnl (const char *str); |
int putsnl (const char *str); |
22 |
extern int putchar (int c); |
int putchar (int c); |
23 |
|
|
24 |
|
FILE *fopen (const char *pathname, const char *mode); |
25 |
|
size_t fwrite (const void *ptr, size_t size, size_t nmemb, FILE *stream); |
26 |
|
int fclose (FILE *stream); |
27 |
|
int fflush (FILE *stream); |
28 |
|
int fputs (const char *str, FILE *stream); |
29 |
|
FILE *fdopen (int fd, const char *mode); |
30 |
|
|
31 |
#endif /* PLIBC_STDIO_H */ |
#endif /* PLIBC_STDIO_H */ |