The GNU system provides several methods for allocating memory space under explicit program control. They vary in generality and in efficiency.
mallocfacility allows fully general dynamic allocation. See section Unconstrained Allocation.
mallocbut more efficient and convenient for stacklike allocation. See section Obstacks.
allocalets 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.