* Copyright (c) 1991 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* %sccs.include.redist.c%
* @(#)output.h 5.1 (Berkeley) %G%
extern struct output output
;
extern struct output errout
;
extern struct output memout
;
extern struct output
*out1
;
extern struct output
*out2
;
void outstr(char *, struct output
*);
void outfmt(struct output
*, char *, ...);
void out1fmt(char *, ...);
void fmtstr(char *, int, char *, ...);
/* void doformat(struct output *, char *, va_list); */
void emptyoutbuf(struct output
*);
void flushout(struct output
*);
int xwrite(int, char *, int);
int xioctl(int, int, int);
#define outc(c, file) (--(file)->nleft < 0? (emptyoutbuf(file), *(file)->nextc++ = (c)) : (*(file)->nextc++ = (c)))
#define out1c(c) outc(c, out1);
#define out2c(c) outc(c, out2);