cURL / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Colin Hogben <curl_at_pythontech.co.uk>
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
types
but different names, e.g. curl_easy_urlencode and curl_easy_urldecode.
Just deprecate curl_easy_[un]escape. Then backward compatibility is not
broken.

-- 
Colin Hogben
Received on 2008-01-15