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

📄 f_absdel.c

📁 [随书类]Dos6.0源代码
💻 C
字号:
/***************************************************************************/
/*																									*/
/*	F_ABSDEL.C																					*/
/*																									*/
/*		Copyright (c) 1991 - Microsoft Corp.											*/
/*		All rights reserved.																	*/
/*		Microsoft Confidential																*/
/*                                                                         */
/* Does an absolute delete of a file reguardless of the files attributes.	*/
/* 																								*/
/* int AbsUnlink( char *szFile )															*/
/* 																								*/
/* ARGUMENTS:	szFile	- Full path name of file to be deleted					*/
/* RETURNS: 	int		- OK if successful else ERROR 							*/
/*																									*/
/* Created 12-10-89 johnhe																	*/
/***************************************************************************/

#include 	<stdio.h>
#include		<io.h>
#include		<dos.h>
#include		<alias.h>

int AbsUnlink( char *szFile )
{
	if ( _dos_setfileattr( szFile, _A_NORMAL ) == OK )
		return( unlink( szFile ) );
	return( -1 );
}

⌨️ 快捷键说明

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