alloca (was: libpw.a)

Steve Summit scs at adam.pika.mit.edu
Sat Apr 29 14:36:07 AEST 1989


In article <8261 at chinet.chi.il.us> les at chinet.chi.il.us (Leslie Mikesell) writes:
%In article <10090 at smoke.BRL.MIL> gwyn at brl.arpa (Doug Gwyn) writes:
%>[earlier posters wrote:]
%>>>To repeat: alloca is EVIL.
%>>It doesn't have to be.
%>There is no situation I know of when use of alloca() is necessary.
%There are two situations which are helped by the use of alloca():
%...
%2) providing the ability to longjmp() out of a function (or just return)
%with the no longer needed memory automatically released

longjmp is evil.



More information about the Comp.unix.wizards mailing list