cURL / Mailing Lists / curl-library / Single Mail


Re: Call of url_easy_unescape( ) with first parameter null

From: Daniel Stenberg <>
Date: Thu, 2 Aug 2007 16:15:29 +0200 (CEST)

On Thu, 2 Aug 2007, Reinhold Buchinger wrote:

> What are the side effects of calling the function
> char *curl_easy_unescape( CURL * curl , char * url , int inlength , int *
> outlength );
> with curl pointing to NULL? I want to simply unescape an URL but I don't
> want to init a handler.

The side effect is simply that your code is less portable, but for most
platforms the first parameter is unused by libcurl. The ones that use it are
the ones that do character conversions (EBCDIC systems typically).

  Commercial curl and libcurl Technical Support:
Received on 2007-08-02