forget difference between big and small commands - obsolete with vm.
[minix.git] / commands / yap / output.h
blob5f04df156236d0b6a8824458380ba1aa32305823
1 /* Copyright (c) 1985 Ceriel J.H. Jacobs */
3 /* $Header$ */
5 # ifndef _OUTPUT_
6 # define PUBLIC extern
7 # else
8 # define PUBLIC
9 # endif
11 PUBLIC int _ocnt;
12 PUBLIC char *_optr;
14 #define putch(ch) if (1) {if (--_ocnt <= 0) flush(); *_optr++ = (ch);} else
16 VOID flush();
18 * void flush()
20 * Write the output buffer to the screen
23 VOID nflush();
25 * void nflush()
27 * Clear output buffer, but do not write it
30 int fputch();
32 * int fputch(c)
33 * int c; The character to be printed
35 * Put character "c" in output buffer and flush if necessary.
38 VOID putline();
40 * void putline(s)
41 * char *s; The string to be printed
43 * Put string "s" in output buffer etc...
46 VOID cputline();
48 * void cputline(s)
49 * char *s; The string to be handled
51 * Put string "s" in the output buffer, expanding control characters
54 VOID prnum();
56 * void prnum(n)
57 * long n; The number to be printed
59 * print the number "n", using putch.
62 char *getnum();
64 * char *getnum(n)
65 * long n; The number to be converted to a string
67 * Convert a number to a string and return a pointer to it.
69 # undef PUBLIC