[C] 分析文件名 →→→→→进入此内容的聊天室

来自 , 2019-06-29, 写在 C, 查看 118 次.
URL http://www.code666.cn/view/43351f7b
  1. #include <process.h>
  2. #include <string.h>
  3. #include <stdio.h>
  4. #include <dos.h>
  5.  
  6. int main(void)
  7. {
  8.    char line[80];
  9.    struct fcb blk;
  10.  
  11.    /* get file name */
  12.    printf("Enter drive and file name (no path - ie. a:file.dat)\n");
  13.    gets(line);
  14.  
  15.    /* put file name in fcb */
  16.    if (parsfnm(line, &blk, 1) == NULL)
  17.       printf("Error in parsfm call\n");
  18.    else
  19.       printf("Drive #%d  Name: %11s\n", blk.fcb_drive, blk.fcb_name);
  20.  
  21.    return 0;
  22. }
  23.  

回复 "分析文件名"

这儿你可以回复上面这条便签

captcha