N
Nitin Bhardwaj
Hi all,
I want to know what is wrong with alloca() ?
Is it hard to implement in a platform-independent way?
OR there is no need for it?
AFAIK alloca() /*(used to)*/ allocate memory at run-time from the
function stack, so that the programmer need not call free() to
de-allocate it.Since it automatically got freed when the function
returns, Right?
So what is wrong with implementing such a function..why doesn't the
Standard provide this function?
Thanks.
I want to know what is wrong with alloca() ?
Is it hard to implement in a platform-independent way?
OR there is no need for it?
AFAIK alloca() /*(used to)*/ allocate memory at run-time from the
function stack, so that the programmer need not call free() to
de-allocate it.Since it automatically got freed when the function
returns, Right?
So what is wrong with implementing such a function..why doesn't the
Standard provide this function?
Thanks.