home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / ansi / stdio / setbuf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-26  |  266 b   |  14 lines

  1. /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <libc/file.h>
  5.  
  6. void
  7. setbuf(FILE *f, char *buf)
  8. {
  9.   if (buf)
  10.     setvbuf(f, buf, _IOFBF, BUFSIZ);
  11.   else
  12.     setvbuf(f, 0, _IONBF, BUFSIZ);
  13. }
  14.