I have read that free() \"generally\" does not return memory to the OS. Can we portably make use of this feature of free(). For example,is this portable?
I am trying to allocate a block of memory, and store a list of structures without using multiple mallocs for each... this is just a generic example, I don\'t have the original code I was working with
what I am trying to do is represented inmy other question with code. Basically I need to keep in memory a table of elements (structs), there\'s no fixed number of elements that can exist, but it is s
This question already has answers here: Closed 12 years ago. Possible Duplicate: C programming : How does free know how much to free?
The following is designed to take a variable length constant char and print it out in a nice format for logging.I am certain readers will have suggestions on how this can be improved, and I\'d welcome
I want to know if a pointer points to a piece of memory allocated with malloc/new.I realize that the answer开发者_如何学JAVA for an arbitrary address is \"No you can\'t\" but I do think it is possible
I am using SUSE 10 Linux on a machine with 16 G ram and 2 quad core CPUs. There are 8 processes which are doing some work (CPU intensive/network i/o). Out of which 4 have a memory leak (These are tes
I allocate a 2d array and use memset to fill it with zeros. #include<stdio.h> #include<string.h>
I have malloc\'d a whole mess of data in an NSOperation instance. I have a pointer: data = malloc(humungous_amounts_of_god_knows_w开发者_如何转开发hat);
I am implementing a divide and conquer polynomial algorithm so I can benchmar开发者_如何学运维k it against an OpenCL implementation, but I can\'t get malloc to work. When I run the program, it allocat