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!duke!unc!tim
From: tim@unc.UUCP
Newsgroups: net.unix-wizards
Subject: Re: stack memory allocation
Message-ID: <5531@unc.UUCP>
Date: Sun, 10-Jul-83 14:26:26 EDT
Article-I.D.: unc.5531
Posted: Sun Jul 10 14:26:26 1983
Date-Received: Mon, 11-Jul-83 09:23:01 EDT
References: sri-arpa.2798
Lines: 14


    Stack space can be allocated in C, if its size is known at
translation time, by simply putting a declaration for the data at the
head of a block.  When the block is entered, the space is allocated,
and when the block is left, the space is dealocated.  This has the
added advantage of accessing the data through a variable instead of a
pointer, making for cleaner code.

______________________________________
The overworked keyboard of Tim Maroney

duke!unc!tim (USENET)
tim.unc@udel-relay (ARPA)
The University of North Carolina at Chapel Hill