fexpunge.txt

来自「dos 1.0 其中包含quick basic源代码、内存管理himem emm」· 文本 代码 · 共 45 行

TXT
45
字号
SUMMARY fexpunge

#include <tools.h>

long fexpunge(pstrDir, pfileList)
char *pstrDir;
FILE *pfileList;

DESCRIPTION

fexpunge opens the index file in the indicated directory's deleted directory,
releases all the deleted files present, removes the index file and then
removes the directory.	If pfileList is not NULL, then a log of the files
deleted is written using the C library fprintf(pfileList, ...).

pstrDir is the name of the directory that has DELETED as a subdirectory.

RETURN VALUE

Returns the number of bytes freed.

IMPLEMENTATION


SEE ALSO  Commands: exp undel rm

Library routine: fdelete

NOTE


EXAMPLE

#include <tools.h>

main(c, argv)
int c;
char *argv[];
{
    char strCurDir[MAXPATHLEN];

    rootpath (".", strCurDir);
    printf("Bytes freed: %ld\n", (long)fexpunge(strCurDir, stdout));
}

⌨️ 快捷键说明

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