1 /* 2 * setbuf.c - control buffering of a stream 3 */ 4 /* $Header$ */ 5 6 #include <stdio.h> 7 #include "loc_incl.h" 8 9 void 10 setbuf(register FILE *stream, char *buf) 11 { 12 (void) setvbuf(stream, buf, (buf ? _IOFBF : _IONBF), (size_t) BUFSIZ); 13 } 14