V
Victor Nazarov
So seems to be slightly wrong group, but...
The question is: Is there any extentions for C or well known libraries
to implement heap managment, for example if I want to allocate a randome
data in the static array of chars? For example:
Heap *heap_new (void *ptr, size_t size/*, may be some other
arguments*/);
void heap_delete (Heap *heapp);
void *heap_alloc (Heap *heapp, size_t object_size);
void *heap_realloc (Heap *heapp, void *alloced_object, size_t new_size);
void heap_free (Heap *heapp, void *alloced_object);
K&R book has a sample implementation of this, but is there a more
effective implementations and what do you think about including such
mecanism to a standard library (as a backend for malloc and co.)?
The question is: Is there any extentions for C or well known libraries
to implement heap managment, for example if I want to allocate a randome
data in the static array of chars? For example:
Heap *heap_new (void *ptr, size_t size/*, may be some other
arguments*/);
void heap_delete (Heap *heapp);
void *heap_alloc (Heap *heapp, size_t object_size);
void *heap_realloc (Heap *heapp, void *alloced_object, size_t new_size);
void heap_free (Heap *heapp, void *alloced_object);
K&R book has a sample implementation of this, but is there a more
effective implementations and what do you think about including such
mecanism to a standard library (as a backend for malloc and co.)?