⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 f_exists.c

📁 [随书类]Dos6.0源代码
💻 C
字号:
/***************************************************************************/
/*																									*/
/*	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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -