9109d7af7f
FILE* innards; allow plats to replace the entire emulated FILE* system.
17 lines
287 B
C
17 lines
287 B
C
/*
|
|
* setbuf.c - control buffering of a stream
|
|
*/
|
|
/* $Id$ */
|
|
|
|
#include <stdio.h>
|
|
#include "loc_incl.h"
|
|
|
|
#if ACKCONF_WANT_STDIO && ACKCONF_WANT_EMULATED_FILE
|
|
|
|
void setbuf(register FILE* stream, char* buf)
|
|
{
|
|
(void)setvbuf(stream, buf, (buf ? _IOFBF : _IONBF), (size_t)BUFSIZ);
|
|
}
|
|
|
|
#endif
|