int normalizepath(const char *path, char **normal);int mkdirp(const char *path);int parentdir(const char *path, char **parent);int nullterminate(char **str, size_t *len);