Lines Matching defs:memory
28 char *memory;
38 mem->memory = realloc(mem->memory, mem->size + realsize + 1);
39 if(mem->memory == NULL) {
40 /* out of memory! */
41 printf("not enough memory (realloc returned NULL)\n");
45 memcpy(&(mem->memory[mem->size]), contents, realsize);
47 mem->memory[mem->size] = 0;
59 chunk.memory = malloc(1); /* will be grown as needed by realloc above */
93 * Now, our chunk.memory points to a memory block that is chunk.size
98 printf("%s\n",chunk.memory);
104 if(chunk.memory)
105 free(chunk.memory);