stack memory allocation - (nf)
fuka at parsec.UUCP
fuka at parsec.UUCP
Tue Jul 19 14:21:56 AEST 1983
#R:sri-arpa:-269100:parsec:44200011:000:499
parsec!fuka Jul 11 17:17:00 1983
There is an apparently undocumented libc routine in 4.1 called alloca, which
seems to do exactly what you want. Here is the header information from
alloca.s:
# @(#)alloca.s 4.1 (Berkeley) 12/21/80
# like alloc, but automatic
# automatic free in return
I have never tried it, but discovered it one day while peering into the
recesses of the libc sources. Does anybody know which UNIX programs use it?
Kent Fuka
Parsec Scientific Computer Corp.
{allegra|ihnp4|uiucdcs}!parsec!fuka
More information about the Comp.unix.wizards
mailing list