From 7c26dcbadd710e2aa0b8a010ecb2c03b7be56caa Mon Sep 17 00:00:00 2001 From: oy Date: Wed, 8 Dec 2010 00:13:59 +0100 Subject: moved function to remove files --- src/base/system.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/base/system.h') diff --git a/src/base/system.h b/src/base/system.h index c863a33f..39e7c994 100644 --- a/src/base/system.h +++ b/src/base/system.h @@ -995,6 +995,21 @@ int fs_chdir(const char *path); */ int fs_parent_dir(char *path); +/* + Function: fs_remove + Deletes the file with the specified name. + + Parameters: + filename - The file to delete + + Returns: + Returns 0 on success, 1 on failure. + + Remarks: + - The strings are treated as zero-terminated strings. +*/ +int fs_remove(const char *filename); + /* Function: fs_rename Renames the file or directory. If the paths differ the file will be moved. -- cgit 1.4.1