added file delete
This commit is contained in:
parent
489fddf5f2
commit
97b1407d91
@ -584,6 +584,18 @@ g_file_exist(char* filename)
|
||||
#endif
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/* returns non zero if the file was deleted */
|
||||
int
|
||||
g_file_delete(char* filename)
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
return DeleteFile(filename);
|
||||
#else
|
||||
return unlink(filename) != -1;
|
||||
#endif
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
int
|
||||
g_strlen(char* text)
|
||||
|
@ -102,6 +102,8 @@ g_set_current_dir(char* dirname);
|
||||
int
|
||||
g_file_exist(char* filename);
|
||||
int
|
||||
g_file_delete(char* filename);
|
||||
int
|
||||
g_strlen(char* text);
|
||||
char*
|
||||
g_strcpy(char* dest, char* src);
|
||||
|
Loading…
Reference in New Issue
Block a user