main output.h
 1#ifndef OUTPUT_H
 2#define OUTPUT_H
 3
 4extern int _ocnt;
 5extern char *_optr;
 6
 7#define putch(ch) \
 8	do { \
 9		if (--_ocnt <= 0) \
10			flush(); \
11		*_optr++ = (ch); \
12	} while (0)
13
14void flush(void);
15void nflush(void);
16int fputch(int c);
17void putline(char *s);
18void cputline(char *s);
19void prnum(long n);
20char *getnum(long n);
21
22#endif