Hi,

I'm curious if it is possible to "allocate" chunks of memory inside an already allocated memory block.

char *block = malloc( 1024 * 1024 );

Here I have 1MB RAM allocated. Now, my program wants to allocate several chunks of memory FROM this block. (Don't ask why:-))

Anyone know if this is possible? If so please tell how. I am new to "C" and have less knowledge about the nitty-gritty of explicit dynamic memory allocation.