home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / text / hyper / ADtoHT2_1.lha / Source.lha / MyLib.lha / stdio / setvbuf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-04  |  322 b   |  17 lines

  1. #include <stdio.h>
  2.  
  3. #include <proto/dos.h>
  4.  
  5. /************************************************************************/
  6.  
  7. #undef setvbuf
  8.  
  9. int setvbuf(FILE *Stream, char *Buffer, int BufferMode, size_t BufferSize)
  10.  
  11. {
  12.   long Result;
  13.  
  14.   Result=SetVBuf(fileno(Stream),Buffer,BufferMode,BufferSize);
  15.   return Result ? EOF : 0;
  16. }
  17.