Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
curl_unescape(3) | Library Functions Manual | curl_unescape(3) |
NAME
curl_unescape - URL decode a stringDESCRIPTION
Deprecated. Use curl_easy_unescape(3) instead.PROTOCOLS
This functionality affects all supported protocolsEXAMPLE
int main(void)
{
CURL *curl = curl_easy_init();
if(curl) {
char *decoded = curl_unescape("%63%75%72%6c", 12);
if(decoded) {
/* do not assume printf() works on the decoded data */
printf("Decoded: ");
/* ... */
curl_free(decoded);
}
}
}
DEPRECATED
Since 7.15.4, curl_easy_unescape(3) should be used. This function might be removed in a future release.AVAILABILITY
Added in curl 7.1RETURN VALUE
A pointer to a null-terminated string or NULL if it failed.SEE ALSO
RFC2396, curl_easy_escape(3), curl_easy_unescape(3), curl_free(3)2024-12-21 | libcurl |