cgmnlm

colorful gemini line mode browser
git clone https://git.clttr.info/cgmnlm.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

util.h (386B)


      1 #ifndef GEMINI_UTIL_H
      2 #define GEMINI_UTIL_H
      3 #include <stdio.h>
      4 #include <sys/types.h>
      5 
      6 struct pathspec {
      7 	const char *var;
      8 	const char *path;
      9 };
     10 
     11 char *getpath(const struct pathspec *paths, size_t npaths);
     12 void posix_dirname(char *path, char *dname);
     13 int mkdirs(char *path, mode_t mode);
     14 int download_resp(FILE *out, struct gemini_response resp, const char *path,
     15 		char *url);
     16 
     17 #endif