shithub: gemnine

ref: 54f4cf61dada165e94b3cd61f72a7003092e9867
dir: /gemnine.h/

View raw version
typedef struct Url Url;

struct Url
{
	char *full;
	char *scheme;
	char *user;
	char *pass;
	char *host;
	char *port;
	char *path;
	char *query;
	char *fragment;
};

#pragma varargck type "U" Url*

int	Efmt(Fmt*);
int	Nfmt(Fmt*);
int	Mfmt(Fmt*);
int Ufmt(Fmt *f);
Url *urlparse(Url *from, char *s);
int matchurl(Url *u, Url *s);
void freeurl(Url *u);
char *Upath(Url *u);

void *emalloc(int n);
char *estrdup(char *s);