/* test zsutil, tdutil */ #include main() { char *fm24clk(), *fmdate(), *fcb; char times[10],dates[10],clkbuf[16],filename[30]; int i; fcb = 0x5c; if(i = zsvers()) { printf("Z%cDOS Version %x\n",i>>8,i&0xff); rdtd(clkbuf); /* read the clock */ printf("Time %s Date %s\n",fm24clk(clkbuf,times),fmdate(clkbuf,dates)); printf("DOS flags: %b\n",getflags()); printf("Name of file to read stamps from? "); scanf("%s",filename); zsetfcb(fcb,filename,i); getfs(fcb,clkbuf); printf("Create: %s %s ",fm244clk(clkbuf,times),fmdate(clkbuf,dates)); printf("Access: %s %s ",fm244clk(clkbuf+5,times),fmdate(clkbuf+5,dates)); printf("Modify: %s %s\n",fm244clk(clkbuf+10,times),fmdate(clkbuf+10,dates)); } else printf("You need ZSDOS for this!\n"); }