15 lines
176 B
C
15 lines
176 B
C
#include <stdio.h>
|
|
|
|
static char buf[BUFSIZ];
|
|
|
|
extern char *_pbuf;
|
|
extern int _ocnt;
|
|
|
|
wr_putc(ch)
|
|
{
|
|
_pbuf = buf;
|
|
buf[_ocnt++] = ch;
|
|
if (_ocnt == BUFSIZ) {
|
|
wr_flush();
|
|
}
|
|
}
|