Initial revision
This commit is contained in:
15
modules/src/object/wr_putc.c
Normal file
15
modules/src/object/wr_putc.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user