static char *hex = "0123456789abcdef";
static STRING(hex) = "0123456789abcdef";
void escape_url(char *url){	static char *hex = "0123456789abcdef";	char scratch[PATHLEN];	char *s;	register char c;	s = strcpy(scratch, url);	while ((c = *s++) != '\0') {		switch (c) {		case '%':		case ' ':		case '?':		case '+':		case '&':			*url++ = '%';			*url++ = hex[(c >> 4) & 15];			*url++ = hex[c & 15];			break;		default:			*url++ = c;			break;		}	}	*url = 0;}