From ae0520e57267dbd866fc8cd25f66f4e6af2ac118 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 13 Jul 2020 15:59:30 +0200 Subject: Move c files into src directory --- src/fileutils.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/fileutils.h (limited to 'src/fileutils.h') diff --git a/src/fileutils.h b/src/fileutils.h new file mode 100644 index 0000000..6c514bb --- /dev/null +++ b/src/fileutils.h @@ -0,0 +1,10 @@ +#ifndef FILEUTILS_H +#define FILEUTILS_H + +const char* get_home_dir(); +/* Returns 0 on success */ +int file_get_content(const char *filepath, char **data, long *size); +/* Returns 0 on success (if the directories are created or if the directories already exists) */ +int create_directory_recursive(char *path); + +#endif -- cgit v1.2.3