cgi_url_escape (3) - Linux Manuals

cgi_url_escape: url escape a string

NAME

cgi_url_escape - url escape a string

SYNOPSIS

#include <cgi/cgi.h>

NEOERR *cgi_url_escape (const char *buf, char **esc);

ARGUMENTS

buf - a 0 terminated string

DESCRIPTION

cgi_url_escape will do URL escaping on the passed in string, and return a newly allocated string that is escaped. Characters which are escaped include control characters, %, ?, +, space, =, &, /, and "

RETURN VALUE

esc - a newly allocated string