💾 Archived View for gmn.clttr.info › sources › cgmnlm.git › tree › include › util.h.txt captured on 2023-01-29 at 05:04:32.

View Raw

More Information

⬅️ Previous capture (2021-12-03)

🚧 View Differences

-=-=-=-=-=-=-

#ifndef GEMINI_UTIL_H
#define GEMINI_UTIL_H
#include <stdio.h>
#include <sys/types.h>

struct pathspec {
	const char *var;
	const char *path;
};

char *getpath(const struct pathspec *paths, size_t npaths);
void posix_dirname(char *path, char *dname);
int mkdirs(char *path, mode_t mode);
int download_resp(FILE *out, struct gemini_response resp, const char *path,
		char *url);

#endif