aboutsummaryrefslogtreecommitdiffstats
path: root/src/ckutil.h
diff options
context:
space:
mode:
authorAnastasis Grammenos <anastasis.gramm2@gmail.com>2018-09-18 19:18:01 +0300
committerAnastasis Grammenos <anastasis.gramm2@gmail.com>2018-09-18 19:18:01 +0300
commit8702ce8bbd4d1435cc81fa8fcd7f5309d3c7b003 (patch)
tree8ce1b6f62ee2cd7d527f23928b20e7b2a1853388 /src/ckutil.h
parentaf17ead850f90cf6e4476aa74975e68d7293fb27 (diff)
downloadck-8702ce8bbd4d1435cc81fa8fcd7f5309d3c7b003.tar.gz
ck-8702ce8bbd4d1435cc81fa8fcd7f5309d3c7b003.tar.bz2
ck-8702ce8bbd4d1435cc81fa8fcd7f5309d3c7b003.zip
VC and secret dir are now stored with absolute path
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. */