1curl_unescape(3)                libcurl Manual                curl_unescape(3)
2
3
4

NAME

6       curl_unescape - URL decodes the given string
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       char *curl_unescape( const char *url, int length );
12

DESCRIPTION

14       Obsolete function. Use curl_easy_unescape(3) instead!
15
16       This  function  will  convert  the  given URL encoded input string to a
17       "plain string" and return that as a new  allocated  string.  All  input
18       characters  that are URL encoded (%XX where XX is a two-digit hexadeci‐
19       mal number) will be converted to their plain text versions.
20
21       If the 'length' argument is set to 0, curl_unescape() will use strlen()
22       on the input 'url' string to find out the size.
23
24       You must curl_free(3) the returned string when you're done with it.
25

AVAILABILITY

27       Since  7.15.4, curl_easy_unescape(3) should be used. This function will
28       be removed in a future release.
29

RETURN VALUE

31       A pointer to a null-terminated string or NULL if it failed.
32

SEE ALSO

34libcurl 7.79.1                 November 04, 2020              curl_unescape(3)
Impressum