📄 f_absdel.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 + -