ALLOC - allocate temporary block of storage.

(Not in the ANSI standard)

Usage:

ptr = alloc(size);

Where:

size_t size;
is the number of bytes of storage to allocate.
void *ptr;
points to the allocated storage.

Description:

"alloc" is similar to the usual "malloc" routine. However, the storage allocated by "alloc" is automatically freed upon termination of the function that calls "alloc". "alloc" is therefore a convenient way to allocate storage that is "local" to a function.

See Also:

expl c lib _allocate

Copyright © 1996, Thinkage Ltd.