1
0
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:
Jfreegman
2014-09-24 00:06:02 -04:00
parent b071a9e992
commit 893e88294b
6 changed files with 18 additions and 43 deletions

View File

@ -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 */