Lines Matching defs:chunk
26 * chunk of memory instead of storing it in a file.
67 struct MemoryStruct chunk;
69 chunk.memory = malloc(1); /* will be grown as needed by the realloc above */
70 chunk.size = 0; /* no data at this point */
83 /* we pass our 'chunk' struct to the callback function */
84 curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)&chunk);
100 * Now, our chunk.memory points to a memory block that is chunk.size
106 printf("%lu bytes retrieved\n", (unsigned long)chunk.size);
112 free(chunk.memory);