请输入您要查询的百科知识:

 

词条 parsfnm
释义

函数名: parsfnm

功 能: 分析文件名

用 法: char *parsfnm (char *cmdline, struct fcb *fcbptr, int option);

程序例:

#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)\");

gets(line);

/* put file name in fcb */

if (parsfnm(line, &blk, 1) == NULL)

printf("Error in parsfm call\");

else

printf("Drive #%d Name: %11s\", blk.fcb_drive, blk.fcb_name);

return 0;

}

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/3/22 11:12:16