setbuf.c 227 B

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