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

Reply via email to