aboutsummaryrefslogtreecommitdiffstats
path: root/src/ckutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ckutil.h')
-rw-r--r--src/ckutil.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ckutil.h b/src/ckutil.h
index 8f5eda8..56b9cd9 100644
--- a/src/ckutil.h
+++ b/src/ckutil.h
@@ -65,8 +65,10 @@ extern int str_is_empty(const char *s);
/* Returns 1 if path is a directory, else returns 0. */
extern int util_is_dir(const char *path);
-/* Returns 1 if file(or dir) exists, else returns 0. */
-extern int util_file_exists(const char *path);
+/* Returns 1 if file(or dir) exists, else returns 0.
+ * Pass a char array in absPath to get the absolute path
+ * of the file it it exists. Pass NULL if no need. */
+extern int util_file_exists(const char *path, char *absPath);
/* Returns 1 if file(or dir) is readable and writable,
* else returns 0. */