The GNU system provides several methods for allocating memory space under explicit program control. They vary in generality and in efficiency.
malloc
facility allows fully general dynamic allocation.
See section Unconstrained Allocation.
malloc
but more
efficient and convenient for stacklike allocation. See section Obstacks.
alloca
lets you allocate storage dynamically that
will be freed automatically. See section Automatic Storage with Variable Size.
Go to the first, previous, next, last section, table of contents.