home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / jËzyki_programowania / ace_basic / ace / include / dos / stdio.h < prev    next >
C/C++ Source or Header  |  1977-12-31  |  847b  |  34 lines

  1. #ifndef DOS_STDIO_H
  2. #define DOS_STDIO_H 1
  3. /*
  4. ** stdio.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/02/95
  11. **
  12. **
  13. */
  14.  
  15.  
  16. #define ReadChar()      FGetC(Input())
  17. #define WriteChar(c)        FPutC(Output(), (c))
  18. #define UnReadChar(c)       UnGetC(Input(), (c))
  19. /* next one is inefficient */
  20. #define ReadChars(buf, num)  FRead(Input(), (buf), 1, (num))
  21. #define ReadLn(buf, len)     FGets(Input(), (buf), (len))
  22. #define WriteStr(s)     FPuts(Output(), (s))
  23. #define VWritef(format, argv)    VFWritef(Output(), (format), (argv))
  24.  
  25. /* types for SetVBuf */
  26. #define BUF_LINE    0   /* flush on \n,  etc */
  27. #define BUF_FULL    1   /* never flush except when needed */
  28. #define BUF_NONE    2   /* no buffering */
  29.  
  30. /* EOF return value */
  31. #define ENDSTREAMCH -1
  32.  
  33. #endif  /* DOS_STDIO_H */
  34.