最佳答案:
getftime具有 取文件日期和时间功能,属于函数名
详情介绍
getftime具有 取文件日期和时间功能,属于函数名

- 外文名
- getftime
- 功 能
- 取文件日期和时间
getftime定义
函数名: getftime
功 能: 取文件日期和时间
用 法: int getftime(int handle, struct ftime *ftimep);
getftime示例
程序例:
#include
#include
int main(void)
{
FILE *stream;
struct ftime ft;
if ((stream = fopen("TEST.$$$",

"wt")) == NULL)
{
fprintf(stderr,
"Cannot open output file.n");
return 1;
}
getftime(fileno(stream), &ft);
printf("File time: %u:%u:%un",
ft.ft_hour, ft.ft_min,
ft.ft_tsec * 2);
printf("File date: %u/%u/%un",

ft.ft_month, ft.ft_day,
ft.ft_year+1980);
fclose(stream);
return 0;
}


