Lines Matching defs:memory
26 * chunk of memory instead of storing it in a file.
37 char *memory;
47 char *ptr = realloc(mem->memory, mem->size + realsize + 1);
49 /* out of memory! */
50 printf("not enough memory (realloc returned NULL)\n");
54 mem->memory = ptr;
55 memcpy(&(mem->memory[mem->size]), contents, realsize);
57 mem->memory[mem->size] = 0;
69 chunk.memory = malloc(1); /* will be grown as needed by the realloc above */
100 * Now, our chunk.memory points to a memory block that is chunk.size
112 free(chunk.memory);