mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-29 11:56:44 +02:00
better way to check if files exist
This commit is contained in:
@ -109,4 +109,7 @@ int char_rfind(const char *s, char ch, int len);
|
||||
/* Converts bytes to appropriate unit and puts in buf as a string */
|
||||
void bytes_convert_str(char *buf, int size, uint64_t bytes);
|
||||
|
||||
/* checks if a file exists. Returns true or false */
|
||||
bool file_exists(const char *fp);
|
||||
|
||||
#endif /* #define _misc_tools_h */
|
||||
|
Reference in New Issue
Block a user