cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: terminating null in buffers for Read/Write callbacks/calls etc

From: Michael Wood <esiotrot_at_gmail.com>
Date: Fri, 5 Feb 2010 19:57:13 +0200

On 5 February 2010 15:25, vick <vijayx_at_gmail.com> wrote:
> Can we assume that a terminating null will be added to data bytes
> downloaded. i.e, libcurl will either add it or check if its there, and if
> not, add it?
> Or is it entirely left to the user/website?

No, I don't see how that would work. Otherwise how could you download
binary files containing '\0' bytes?

-- 
Michael Wood <esiotrot_at_gmail.com>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-02-05