home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 387b.lha / dice_v2.02 / lib / stdio / setbuf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-30  |  239 b   |  21 lines

  1.  
  2. /*
  3.  *  SETBUF.C
  4.  *
  5.  *  (c)Copyright 1990, Matthew Dillon, All Rights Reserved
  6.  */
  7.  
  8. #include <stdio.h>
  9.  
  10. void
  11. setbuf(fi, buf)
  12. FILE *fi;
  13. char *buf;
  14. {
  15.     if (buf)
  16.     setvbuf(fi, buf, _IOFBF, BUFSIZ);
  17.     else
  18.     setvbuf(fi, NULL, _IONBF, 0);
  19. }
  20.  
  21.