cURL / Mailing Lists / curl-library / Single Mail


Re: curl_easy_escape() and curl_easy_unescape() length arguments data types

From: Colin Hogben <>
Date: Tue, 15 Jan 2008 15:13:35 +0000

Yang Tse wrote:
> char *curl_easy_escape(CURL *handle, const char *string, int inlength);
> char *curl_easy_unescape(CURL *handle, const char *string, int length,
> int *olen);
> Probably all three lengths should be changed to 'size_t'.
Would it not be better to add new API functions with the correct length
but different names, e.g. curl_easy_urlencode and curl_easy_urldecode.
Just deprecate curl_easy_[un]escape. Then backward compatibility is not

Colin Hogben
Received on 2008-01-15