複製鏈接
請複製以下鏈接發送給好友

parsfnm

鎖定
parsfnm是一個函數,有分析文件名的功能。
中文名
parsfnm
外文名
parsfnm
功 能
分析文件名
函數名
parsfnm添加自定義項
用    法
char *parsfnm
程序例:
#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;
}