/* STDIO.H */ #define _NFILE (0x10) #define BUFSIZ (0x200) typedef struct FILE { short _file,_flag; char *_base,*_ptr; short _cnt; } FILE; extern FILE _iob[_NFILE]; #define _IOREAD (0x01) #define _IOWRT (0x02) #define _IONBF (0x04) #define _IOEOF (0x20) #define _IOERR (0x40) #define stdin (&_iob[0]) #define stdout (&_iob[1]) #define stderr (&_iob[2]) #define getc(s) (--(s)->_cnt>=0?(short)*(s)->_ptr++:_filbuf(s)) #define putc(c,s) (--(s)->_cnt>=0?(short)(*(s)->_ptr++=(char)(c)):_flsbuf((char)(c),(s))) #define getchar() getc(stdin) #define putchar(c) putc((c),stdout) #define feof(s) ((s)->_flag&_IOEOF) #define ferror(s) ((s)->_flag&_IOERR) #define fileno(s) ((s)->_file) #define clearerr(s) ((s)->_flag&=~(_IOERR|_IOEOF)) extern FILE *fopen(),*fopena(),*fopenb(),*freopen(); extern FILE *freopa(),*freopb(),*fdopen(); extern char *fgets(),*gets(),*sbrk(),*malloc(),*calloc(),*realloc(); extern char *ftoa(),*etoa(),*getpass(),*index(),*rindex(); extern char *mktemp(),*sprintf(),*strcat(),*strncat(); extern char *strcpy(),*strncpy(),*ttyname(); extern long ftell(),getl(),lseek(),tell(),atol(),putl(); extern float atof(),ceil(),cos(),sin(),exp(),fabs(),floor(); extern float fmod(),log(),pow(),sinh(),tanh(),sqrt(),tan(),atan(); /* CTYPE.H */ #define _C 0x01 #define _P 0x02 #define _N 0x04 #define _U 0x08 #define _L 0x10 #define _S 0x20 #define _B 0x40 #define _X 0x80 extern char __atab[]; #define isalpha(c) (__atab[c]&(_U|_L)) #define isupper(c) (__atab[c]&_U) #define islower(c) (__atab[c]&_L) #define isdigit(c) (__atab[c]&_N) #define isxdigit(c) (__atab[c]&_X) #define isalnum(c) (__atab[c]&(_U|_L|_N)) #define isspace(c) (__atab[c]&_S) #define ispunct(c) (__atab[c]&_P) #define isprint(c) (__atab[c]&(_P|_U|_L|_N|_B)) #define isgraph(c) (__atab[c]&(_P|_U|_L|_N)) #define iscntrl(c) (__atab[c]&_C) #define isascii(c) ((char)(c)<0x80) #define _toupper(c) ((c)-'a'+'A') #define _tolower(c) ((c)-'A'+'a') #define toupper(c) _toupper(c) #define tolower(c) _tolower(c) #define toascii(c) ((c)&0x7F)