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

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