Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!security!genrad!mit-eddie!mit-vax!eagle!mhuxt!mhuxi!mhuxa!houxm!hocda!spanky!burl!we13!ihnp4!ixn5c!inuxc!pur-ee!uiucdcs!parsec!fuka From: fuka@parsec.UUCP Newsgroups: net.unix-wizards Subject: Re: stack memory allocation - (nf) Message-ID: <2404@uiucdcs.UUCP> Date: Tue, 19-Jul-83 00:21:56 EDT Article-I.D.: uiucdcs.2404 Posted: Tue Jul 19 00:21:56 1983 Date-Received: Thu, 14-Jul-83 10:11:31 EDT Lines: 17 #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