: any pointers or alternate implementations to allocate memory without
:using std function malloc() & free memory without using free() ...!
malloc() and kin are there to hide the system dependancies that
you would otherwise have to use.
On a Unix system, the traditional interface to allocating or
deallocating process memory is through the brk() and sbrk() functions.
Those are, though, not part of standard C, and the procedure
for Windows 2000 might be completely different (and for Windows 95
completely different yet.)
Even within Unix, a variety of strategies are used these days, not just
brk() and sbrk(). For example, there are versions of malloc() that work
by requesting that a private shared memory segment be mapped into the
address space -- leading to discontinuous sets of valid virtual
addresses, but also making it easier to return memory to the OS.
:the functions should behave exactly like the STD functions are..
Bug for bug compatible? For example, if you overwrite the location
-before- an allocated area, and then free() the allocated area, do
you require that the implimentation trash a semi-random part of your
address space... or would it be acceptable if the implimentation put
a "guard zone" there and raised a SIGMEM when you attempted to write to
the unallocated location?