#include #include #include #define SYSVER " MS-Dos/MSC Routines V1.0 created xx:xx xx/xx/xx" #define PROTO(x) x #define getstamp(f, date, time) \ _dos_getftime(fileno(f), (unsigned *)date, (unsigned *)time) #define setstamp(f, date, time) \ (fflush(f), _dos_setftime(fileno(f), date, time)) #define coreleft() _memavl() #define opnarcrd(p) fopen(p, "rb") #define opnarcwr(p) fopen(p, "wb") #define opnfilrd(p) fopen(p, "rb") #define getfilch(f) getc(f) #define putfilch(c, f) putc(c & 0xff, f) #define putc_tst(c, t) \ do { if (t && putc(c,t)==EOF) fatal("Write fail (disk full?)"); } while(0) extern void fatal PROTO((char *, ...)); extern char *dir PROTO((char *)); extern void rempath PROTO((int, char **)); extern char *makefnam PROTO((char *, char *, char *)); extern char *basename PROTO((char *)); extern FILE *opnfilwr PROTO((char *)); extern void runarc PROTO((int, char **)); extern int readhdr PROTO((struct heads *, FILE *)); extern void writehdr PROTO((struct heads *, FILE *)); extern void filecopy PROTO((FILE *, FILE *, long));