home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOSxA.lzx / pOSxA / dos / stdio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-12  |  824 b   |  27 lines

  1. #ifndef DOS_STDIO_H
  2. #define DOS_STDIO_H
  3.  
  4. /*******************************************************************
  5.  pOS / Amiga adapt
  6. *******************************************************************/
  7.  
  8. #ifndef __INC_POS_PROTO_PDOS2_H
  9. #include <p:proto/pDOS2.h>
  10. #endif
  11.  
  12.  
  13. #define ReadChar()        pOS_FileGetC(pOS_GetStdInput())
  14. #define WriteChar(c)        pOS_FilePutC(pOS_GetStdOutput(),(c))
  15. #define UnReadChar(c)        pOS_FileUnGetC(pOS_GetStdInput(),(c))
  16. #define ReadChars(buf,num)    pOS_FileRead(pOS_GetStdInput(),(buf),1,(num))
  17. #define ReadLn(buf,len)        pOS_FileGets(pOS_GetStdInput(),(buf),(len))
  18. #define WriteStr(s)        pOS_FilePuts(pOS_GetStdOutput(),(s))
  19. #define VWritef(format,argv)    pOS_VFWritef(pOS_GetStdOutput(),(format),(argv))
  20.  
  21. #define BUF_LINE 0
  22. #define BUF_FULL 1
  23. #define BUF_NONE 2
  24. #define ENDSTREAMCH -1
  25.  
  26. #endif    /* DOS_STDIO_H */
  27.