ack/lang/cem/libcc.ansi/stdio/setbuf.c
1989-05-30 13:34:25 +00:00

19 lines
271 B
C

/*
* 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);
}