Home | History | Annotate | Download | only in examples

Lines Matching defs:memory

23  * Make a HTTP POST with data from memory and receive response in memory.
32 char *memory;
42 mem->memory = realloc(mem->memory, mem->size + realsize + 1);
43 if(mem->memory == NULL) {
44 /* out of memory! */
45 printf("not enough memory (realloc returned NULL)\n");
49 memcpy(&(mem->memory[mem->size]), contents, realsize);
51 mem->memory[mem->size] = 0;
63 chunk.memory = malloc(1); /* will be grown as needed by realloc above */
97 * Now, our chunk.memory points to a memory block that is chunk.size
102 printf("%s\n",chunk.memory);
108 free(chunk.memory);