f_absdel.c
来自「[随书类]Dos6.0源代码」· C语言 代码 · 共 30 行
C
30 行
/***************************************************************************/
/* */
/* 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 + =
减小字号Ctrl + -
显示快捷键?