]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/curl/docs/libcurl/curl_unescape.3
hello world
[icculus/iodoom3.git] / neo / curl / docs / libcurl / curl_unescape.3
1 .\" You can view this file with:
2 .\" nroff -man [file]
3 .\" $Id: curl_unescape.3,v 1.4 2004/02/27 15:34:06 bagder Exp $
4 .\"
5 .TH curl_unescape 3 "22 March 2001" "libcurl 7.7" "libcurl Manual"
6 .SH NAME
7 curl_unescape - URL decodes the given string
8 .SH SYNOPSIS
9 .B #include <curl/curl.h>
10 .sp
11 .BI "char *curl_unescape( char *" url ", int "length " );"
12 .ad
13 .SH DESCRIPTION
14 This function will convert the given URL encoded input string to a "plain
15 string" and return that as a new allocated string. All input characters that
16 are URL encoded (%XX where XX is a two-digit hexadecimal number, or +) will be
17 converted to their plain text versions (up to a ? letter, no + letters to the
18 right of a ? letter will be converted).
19
20 If the 'length' argument is set to 0, curl_unescape() will use strlen() on the
21 input 'url' string to find out the size.
22
23 You must curl_free() the returned string when you're done with it.
24 .SH RETURN VALUE
25 A pointer to a zero terminated string or NULL if it failed.
26 .SH "SEE ALSO"
27 .I curl_escape(3), curl_free(3), RFC 2396