added file delete

ulab-original
jsorg71 19 years ago
parent 489fddf5f2
commit 97b1407d91

@ -584,6 +584,18 @@ g_file_exist(char* filename)
#endif #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 int
g_strlen(char* text) g_strlen(char* text)

@ -102,6 +102,8 @@ g_set_current_dir(char* dirname);
int int
g_file_exist(char* filename); g_file_exist(char* filename);
int int
g_file_delete(char* filename);
int
g_strlen(char* text); g_strlen(char* text);
char* char*
g_strcpy(char* dest, char* src); g_strcpy(char* dest, char* src);

Loading…
Cancel
Save