ack/lang/cem/libcc.ansi/stdio/setbuf.c

19 lines
271 B
C
Raw Normal View History

1989-05-30 13:34:25 +00:00
/*
* setbuf.c - control buffering of a stream
*/
/* $Header$ */
#include <stdio.h>
#include "loc_incl.h"
void
setbuf(register FILE *stream, char *buf)
{
int mode;
if (buf) mode = _IOFBF;
else mode = _IONBF;
(void) setvbuf(stream, buf, mode, (size_t) BUFSIZ);
}