ptr = _allocate(size,parent);
"_allocate" is similar to the usual "malloc" routine. However, the storage allocated by "_allocate" is automatically freed upon termination of one of the parent functions of the function that calls "_allocate". For example, suppose function A calls function B, and B issues the call
The space allocated by this call will be automatically freed when A (the parent of B) finishes execution.
In some sense then, "_allocate" allocates storage that is "local" to some parent function.
expl c lib alloc
expl nsc lib malloc
Copyright © 1996, Thinkage Ltd.