From f76ba81c317fdca5f549bcb044d62861609fe6d1 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 15 Apr 2016 23:57:50 -0700 Subject: Save state menu WIP --- util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util.h') diff --git a/util.h b/util.h index b9d271e..7fd26b6 100644 --- a/util.h +++ b/util.h @@ -2,6 +2,7 @@ #define UTIL_H_ #include +#include typedef struct { char *name; @@ -40,6 +41,8 @@ char *read_bundled_file(char *name, long *sizeret); dir_entry *get_dir_list(char *path, size_t *numret); //Frees a dir list returned by get_dir_list void free_dir_list(dir_entry *list, size_t numentries); +//Gets the modification time of a file +time_t get_modification_time(char *path); //Recusrively creates a directory if it does not exist int ensure_dir_exists(char *path); //Returns the contents of a symlink in a newly allocated string -- cgit v1.2.3