curl-library
Modifying the example source code
From: <richardcavell_at_mail.com>
Date: Sun, 27 Feb 2011 23:37:49 -0500
Date: Sun, 27 Feb 2011 23:37:49 -0500
Hi everyone. I'm still a newb trying to learn C99 and use libcurl.
I have successfully modified this code:
http://curl.haxx.se/libcurl/c/getinmemory.html
It works perfectly. However, where it says chunk.memory = malloc (1) ,
I decided to be less stingy and give it malloc (10000). Now, I modify
the next line to chunk.size = 10000 ; and suddenly my code produces
errors.
Am I misunderstanding the purpose of MemoryStruct.size ?
Richard
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-02-28