summaryrefslogtreecommitdiff
path: root/src/common/utils.h
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-02-08 00:31:56 +0100
committerHaru <haru@dotalux.com>2020-02-09 20:23:14 +0100
commitce21c1e9361e04391dc41463af24d5eb0c493bd1 (patch)
treeb0bcd3ce8a4e42bd6db4712df0955af75c9742d3 /src/common/utils.h
parent6e4c66213fca0fd482e1d983a4e3307f08619e5c (diff)
downloadhercules-ce21c1e9361e04391dc41463af24d5eb0c493bd1.tar.gz
hercules-ce21c1e9361e04391dc41463af24d5eb0c493bd1.tar.bz2
hercules-ce21c1e9361e04391dc41463af24d5eb0c493bd1.tar.xz
hercules-ce21c1e9361e04391dc41463af24d5eb0c493bd1.zip
Add is_file() function
Diffstat (limited to 'src/common/utils.h')
-rw-r--r--src/common/utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/utils.h b/src/common/utils.h
index a0590db7f..b160d3651 100644
--- a/src/common/utils.h
+++ b/src/common/utils.h
@@ -40,6 +40,7 @@ void WriteDump(FILE* fp, const void* buffer, size_t length);
void ShowDump(const void* buffer, size_t length);
void findfile(const char *p, const char *pat, void (func)(const char *, void *), void *context);
+bool is_file(const char *path);
bool exists(const char* filename);
/// calculates the value of A / B, in percent (rounded down)