Subject: Re: alloca() question
To: None <>
From: J.T. Conklin <>
List: current-users
Date: 07/12/1996 14:36:01
> I recently found that, at least on the 386, alloca() doesn't return
> NULL when the stack limit is reached. Is it a bug or a feature ?

I don't think alloca() returns NULL when the stack limit is reached
on other architectures either.  Usually it is implemented as a simple
adjustment of the stack pointer. 

> If it's a feature, the alloca() man page is false.

I take it you mean the sentance "If the allocation failed, a NULL pointer
is returned."

IMO, that sentance should be removed.