Lines Matching defs:memory
25 * Make an HTTP POST with data from memory and receive response in memory.
34 char *memory;
44 char *ptr = realloc(mem->memory, mem->size + realsize + 1);
46 /* out of memory! */
47 printf("not enough memory (realloc returned NULL)\n");
51 mem->memory = ptr;
52 memcpy(&(mem->memory[mem->size]), contents, realsize);
54 mem->memory[mem->size] = 0;
66 chunk.memory = malloc(1); /* will be grown as needed by realloc above */
99 * Now, our chunk.memory points to a memory block that is chunk.size
104 printf("%s\n",chunk.memory);
111 free(chunk.memory);