mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-29 19:26:44 +02:00
more succinct way to get file sizes
This commit is contained in:
@ -112,4 +112,7 @@ 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 *path);
|
||||
|
||||
/* returns file size or -1 on error */
|
||||
uint64_t file_size(const char *path);
|
||||
|
||||
#endif /* #define MISC_TOOLS_H */
|
||||
|
Reference in New Issue
Block a user