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