|
NAMEkhttp_urlencode —
URL encoding for kcgi
LIBRARYlibrary “libkcgi”SYNOPSIS#include <sys/types.h>
#include <stdarg.h>
#include <stdint.h>
#include <kcgi.h>
char *
DESCRIPTIONPercent-encodes a string cp, usually for embedding in a URL, and returns the allocated result. If passed aNULL , returns an allocated empty string.
The encoding uses capital-letter hex encoding. RETURN VALUESReturns a newly-allocated string that must be freed with free(3) orNULL if allocation fails.
The deprecated form of this function,
EXAMPLESThe following table shows strings pre- and post-encoding.
AUTHORSWritten by Kristaps Dzonsons <kristaps@bsd.lv>.
Visit the GSP FreeBSD Man Page Interface. |