f_exists.c
来自「[随书类]Dos6.0源代码」· C语言 代码 · 共 30 行
C
30 行
/***************************************************************************/
/* */
/* F_EXISTS.C */
/* */
/* Copyright (c) 1991 - Microsoft Corp. */
/* All rights reserved. */
/* Microsoft Confidential */
/* */
/* Determines if the specified file exists. */
/* */
/* int FileExists( char *szFile ) */
/* */
/* ARGUMENTS: szFile - Ptr to full path name for file to be found */
/* RETURNS: int - TRUE if file was found else FALSE */
/* */
/* Created 10-28-89 johnhe */
/***************************************************************************/
#include <dos.h>
#include <alias.h>
int FileExists( char *szFile )
{
struct find_t FileInfo;
return( _dos_findfirst( szFile, _A_NORMAL | _A_RDONLY | _A_ARCH,
&FileInfo ) == OK );
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?