Andreas Hasenack <andreas(_at_)conectiva(_dot_)com(_dot_)br> writes:
So, at least with linux's glibc and gcc, alloca never fails. Never.
That's (sort of) documented, look into the output of
info libc "Disadvantages of Alloca"
These are the disadvantages of `alloca' in comparison with `malloc':
* If you try to allocate more memory than the machine can provide,
you don't get a clean error message. Instead you get a fatal
signal like the one you would get from an infinite recursion;
probably a segmentation violation (*note Program Error Signals::).