Article View: comp.lang.c.moderated
Article #2175Re: Bad Style Contest - We Have a Winner!
From: Stan Ryckman
Date: Tue, 05 Mar 1996 03:24
Date: Tue, 05 Mar 1996 03:24
28 lines
1398 bytes
1398 bytes
In article <4h2thl$1io@solutions.solon.com>, David Thomas Richard Given <dtrg@st-andrews.ac.uk> wrote: [snip] > /* Free storage (I should have used alloca()) */ No you shouldn't have. >From a (1990) man page: :WARNINGS : alloca() is machine-, compiler-, and most of all, system- : dependent. Its use is strongly discouraged. See : getrlimit(2), sigvec(2), sigstack(2), csh(1), and ld(1). I think there's something in the comp.lang.c FAQ about this, too, but I don't have a copy of it handy. [I agree. alloca is deranged, undesireable, and useful only when there's a problem with the design of the code to begin with. The sole excuse for it would go away if the committee introduced variable-sized arrays and added C++ style mixing of declarations with code. -mod] Cheers, Stan. -- Stan Ryckman (stanr@tiac.net) (new e-mail address)
Technical Details
Message-ID:
<4hgc5l$99s@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4fjmdt$og4@solutions.solon.com> <4g27nn$qaj@solutions.solon.com> <4h2thl$1io@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: stanr@tiac.net (Stan Ryckman) Newsgroups: comp.lang.c.moderated Subject: Re: Bad Style Contest - We Have a Winner! Date: 4 Mar 1996 21:24:37 -0600 Organization: Amber & Sneakers Fan Club Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4hgc5l$99s@solutions.solon.com> References: <4fjmdt$og4@solutions.solon.com> <4g27nn$qaj@solutions.solon.com> <4h2thl$1io@solutions.solon.com> NNTP-Posting-Host: solutions.solon.com