home *** CD-ROM | disk | FTP | other *** search
/ Oldies but Goodies / OldiesButGoodiesROMMANTechnologies1993.disc1of1.iso / adventur / stdio.h < prev    next >
Text File  |  1984-05-11  |  896b  |  38 lines

  1. /*    standard i/o header file for c86
  2. */
  3.  
  4. #ifdef _C86_BIG
  5. #define NULL (0L)
  6. #else
  7. #define NULL 0
  8. #endif
  9.  
  10. #define EOF (-1)    /* standard end of file */
  11. #define EOS '\0'    /* standard end of string */
  12. #define AREAD 0        /* ascii read */
  13. #define AWRITE 1    /* ascii write */
  14. #define AUPDATE 2    /* ascii update (take care with this one) */
  15. #define BREAD 4        /* binary update */
  16. #define BWRITE 5    /* binary write */
  17. #define BUPDATE 6    /* binary update */
  18. typedef char FILE;
  19. #define getchar() fgetc(stdin)
  20. #define getc(x) fgetc(x)
  21. #define putchar(x) fputc(x,stdout)
  22. #define putc(x,y) fputc(x,y)
  23. #define ungetch(c) ungetc(c,stdin)
  24.  
  25. /*    definition for setjmp and longjmp
  26. */
  27.  
  28. #ifdef _C86_BIG
  29. typedef int jmp_buf[4];
  30. #else
  31. typedef int jmp_buf[3];
  32. #endif
  33.  
  34. extern FILE *stdin, *stdout, *stderr;
  35.  
  36. /*    end of standard header file
  37. */
  38.