Article View: comp.lang.c.moderated
Article #2606Re: Legal alloca?
From: Konrad Schwarz
Date: Wed, 17 Apr 1996 01:21
Date: Wed, 17 Apr 1996 01:21
15 lines
960 bytes
960 bytes
In article <4koe4u$8sl@solutions.solon.com>, wirzeniu@cc.helsinki.fi (Lars Wirzenius) writes: |> int *temp; |> |> temp = alloca(bar*sizeof(int)); |> if (temp == NULL) |> return -1; I have never seen a man page indicating that alloca can fail in the same way as malloc. I expect a SIGSEGV signal to be posted when stack extension is no longer possible. (I think this is a feature, since there is usually not much you can do except terminate when memory runs out, anyhow.) Konrad Schwarz
Technical Details
Message-ID:
<4l1h2l$pns@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4klidc$ne8@solutions.solon.com> <4koe4u$8sl@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: schwarz@mips.complang.tuwien.ac.at (Konrad Schwarz) Newsgroups: comp.lang.c.moderated Subject: Re: Legal alloca? Date: 16 Apr 1996 20:21:25 -0500 Organization: TU Wien Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4l1h2l$pns@solutions.solon.com> References: <4klidc$ne8@solutions.solon.com> <4koe4u$8sl@solutions.solon.com> NNTP-Posting-Host: solutions.solon.com