home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / dos / stdio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  710 b   |  35 lines

  1. #ifndef DOS_STDIO_H
  2. #define DOS_STDIO_H
  3. /*
  4. **
  5. ** $Filename: dos/stdio.h $
  6. ** $Release: 2.04 Includes, V37.4 $
  7. ** $Revision: 36.6 $
  8. ** $Date: 91/11/01 $
  9. **
  10. ** ANSI-like stdio defines for dos buffered I/O
  11. **
  12. ** (C) Copyright 1989-1991 Commodore-Amiga, Inc.
  13. ** All Rights Reserved
  14. **
  15. */
  16.  
  17. #define ReadChar() FGetC(Input())
  18. #define WriteChar(c) FPutC(Output(),(c))
  19. #define UnReadChar(c) UnGetC(Input(),(c))
  20.  
  21. #define ReadChars(buf,num) FRead(Input(),(buf),1,(num))
  22. #define ReadLn(buf,len) FGets(Input(),(buf),(len))
  23. #define WriteStr(s) FPuts(Output(),(s))
  24. #define VWritef(format,argv) VFWritef(Output(),(format),(argv))
  25.  
  26.  
  27. #define BUF_LINE 0 
  28. #define BUF_FULL 1 
  29. #define BUF_NONE 2 
  30.  
  31.  
  32. #define ENDSTREAMCH -1
  33.  
  34. #endif 
  35.