upvote
No modern libc uses (or should use) brk() as the heap. Allocate virtual memory using mmap, VirtualAlloc, etc., and manage your set of heaps.
reply
It is not what I meant and also seems to me not what is meant by sp.h either.
reply