aboutsummaryrefslogtreecommitdiffstats
path: root/src/filepath.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/filepath.h')
-rw-r--r--src/filepath.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/filepath.h b/src/filepath.h
new file mode 100644
index 0000000..91f4623
--- /dev/null
+++ b/src/filepath.h
@@ -0,0 +1,15 @@
+#ifndef __FILEPATH_H__
+#define __FILEPATH_H__
+
+#include <stdbool.h>
+
+extern bool is_absolute(const char* path);
+extern char *remove_ext(const char *str);
+extern char *take_extension(const char *target);
+extern const char *make_relative(const char *target, const char *to);
+extern char *transform_path(const char *target);
+extern char *xbasename(const char *path);
+extern bool fexists(const char *target);
+extern off_t fsize(const char *fn);
+
+#endif