cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Question about curl CURLOPT_DEBUGFUNCTION example

From: Ray Satiro via curl-library <curl-library_at_cool.haxx.se>
Date: Fri, 15 Apr 2016 15:40:04 -0400

On 4/15/2016 4:17 AM, Elia Pinto wrote:
> Hello everyone.
> I am sorry for the banal question
> but I'm using in my code this example of CURLOPT_DEBUGFUNCTION
> https://curl.haxx.se/libcurl/c/debug.html
> and I wondered why in the code the "dump" function use the hex char
> OD and OA for comparisons and not the equivalent C code escape '\ r' and '\ n'.
>
> There is probably something obvious but I can not give me a convincing
> explanation. Could you help me?
>
> Thank you very much
>
> https://curl.haxx.se/libcurl/c/debug.html

I wouldn't worry about it, there's no difference in the comparison it's
just a matter of preference.
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-04-15