#include <process.h> #include <string.h> #include <stdio.h> #include <dos.h> int main(void) { char line[80]; struct fcb blk; /* get file name */ printf("Enter drive and file name (no path - ie. a:file.dat)\n"); gets(line); /* put file name in fcb */ if (parsfnm(line, &blk, 1) == NULL) printf("Error in parsfm call\n"); else printf("Drive #%d Name: %11s\n", blk.fcb_drive, blk.fcb_name); return 0; }