Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ alloca(3) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

csh(1)

ld(1)

brk(2)

getrlimit(2)

sigstack(3)

sigvec(3)

calloc(3X)

alloca(3)               (BSD Compatibility Package)               alloca(3)

NAME
     alloca - memory allocator

SYNOPSIS
     /usr/ucb/cc [flag ...] file ... -lucb

     #include <alloca.h>

     char *alloca(size)
     unsigned size;

DESCRIPTION
     alloca allocates size bytes of space off the run-time stack and
     returns a pointer to the allocated block. This temporary space is
     automatically freed when blocks are found deeper than current alloca-
     tions or when subsequent calls to alloca are made in the form
     alloca(0).

NOTES
     It should work under any C implementation that uses an actual pro-
     cedure stack (as opposed to a linked list of frames). There are some
     preprocessor constants that can be defined when compiling for your
     specific system, for improved efficiency.

SEE ALSO
     csh(1), ld(1), brk(2), getrlimit(2), sigstack(3), sigvec(3),
     calloc(3X).




























Page 1                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026