4 #define putc(c, fp) (fputc(c, fp))
5 #define getc(fp) (fgetc(fp))
9 int back
; /* pushback buffer */
10 char *ibuf
, *obuf
; /* input/output buffer */
11 int isize
, osize
; /* ibuf size */
12 int ilen
, olen
; /* length of data in buf */
13 int iown
, oown
; /* free the buffer when finished */
14 int icur
; /* current position in ibuf */
22 FILE *fopen(char *path
, char *mode
);
25 void setbuf(FILE *fp
, char *buf
);
27 int fputc(int c
, FILE *fp
);
29 int printf(char *fmt
, ...);
30 int vprintf(char *fmt
, va_list ap
);
31 int fprintf(FILE *fp
, char *fmt
, ...);
32 int sprintf(char *dst
, char *fmt
, ...);
33 int vsprintf(char *dst
, char *fmt
, va_list ap
);
34 int vfprintf(FILE *fp
, char *fmt
, va_list ap
);
35 int snprintf(char *dst
, int sz
, char *fmt
, ...);
36 int vsnprintf(char *dst
, int sz
, char *fmt
, va_list ap
);
37 int fputs(char *s
, FILE *fp
);
41 char *fgets(char *s
, int sz
, FILE *fp
);
42 int scanf(char *fmt
, ...);
43 int fscanf(FILE *fp
, char *fmt
, ...);
44 int sscanf(char *s
, char *fmt
, ...);
45 int vsscanf(char *s
, char *fmt
, va_list ap
);
46 int vfscanf(FILE *fp
, char *fmt
, va_list ap
);
48 int ungetc(int c
, FILE *fp
);
49 long fwrite(void *s
, long sz
, long n
, FILE *fp
);
50 long fread(void *s
, long sz
, long n
, FILE *fp
);