|
DataMuseum.dkPresents historical artifacts from the history of: CP/M |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about CP/M Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 1024 (0x400) Types: TextFile Names: »STDIO.H«
└─⟦fa5b86546⟧ Bits:30002725 SW1609 Digital Research C - CCP/M - Oct 83 └─ ⟦this⟧ »STDIO.H«
#include <portab.h> #define BUFSIZ 512 #define MAXFILES 16 struct _iobuf æ WORD _fd; WORD _flag; BYTE *_base; BYTE *_ptr; WORD _cnt; å; #ifndef FILE extern struct _iobuf _iobÆMAXFILESÅ; #define FILE struct _iobuf #endif #define _IOREAD 0x01 #define _IOWRT 0x02 #define _IOABUF 0x04 #define _IONBUF 0x08 #define _IOERR 0x10 #define _IOEOF 0x20 #define _IOLBUF 0x40 #define _IOSTRI 0x80 #define _IOASCI 0x100 #define stdin (&_iobÆ0Å) #define stdout (&_iobÆ1Å) #define stderr (&_iobÆ2Å) #define clearerr(p) ((p)->_flag & ü_IOERR) #define feof(p) ((p)->_flag & _IOEOF) #define ferror(p) ((p)->_flag & _IOERR) #define fileno(p) ((p)->_fd) #define getchar() getc(stdin) #define putchar(c) putc(c,stdout) #define putc fputc #define getc fgetc #define abs(x) ((x) < 0 ? -(x) : (x)) #define MAX(x,y) (((x) > (y)) ? (x) : (y)) #define MIN(x,y) (((x) < (y)) ? (x) : (y)) «eof»