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

📄 f_isdir.c

📁 [随书类]Dos6.0源代码
💻 C
字号:
/***************************************************************************/
/*																									*/
/*	F_ISDIR.C																					*/
/*																									*/
/*		Copyright (c) 1991 - Microsoft Corp.											*/
/*		All rights reserved.																	*/
/*		Microsoft Confidential																*/
/*                                                                         */
/* Determines if any files exist in the specified directory path. 			*/
/* 																								*/
/* int IsDirEmpty( char *szPath )														*/
/* 																								*/
/* ARGUMENTS:	szPath	- Ptr to full path name for directory to search 	*/
/* RETURNS: 	int		- FALSE if file is found else TRUE						*/
/*																									*/
/* Created 10-28-89 johnhe																	*/
/***************************************************************************/

#include 	<stdio.h>

#include 	<alias.h>
#include 	<strlib.h>
#include 	<disk_io.h>

int IsDirEmpty( char *szPath )
{
	char				*szAnyFile = "????????.???";
	char				szFullPath[ MAX_PATH_LEN ];

	BuildPath( szFullPath, szPath[0], szPath + 2, szAnyFile );
	return( !FileExists( szFullPath ) );
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -