ack/modules/src/object/wr_putc.c
1987-03-10 09:24:02 +00:00

20 lines
355 B
C

/* $Header$ */
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
#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();
}
}