alloca (was vs var-len auto arrays)
Daniel A. Glasser
dag at per2.UUCP
Sat Apr 29 08:08:32 AEST 1989
In article <1381 at naucse.UUCP>, jdc at naucse.UUCP (John Campbell) writes:
> I don't remember alloca() making it to the ANSI standard library. I hereby
> request that only those who write *useless* code use alloca()! :-)
Here here!
The standard does not have alloca() anywhere in it. The rationale document
does mention the omission in 4.10.3 -- (quoted without permission)
Some implementations provide a function (often called alloca) which
allocates the requested object from automatic storage; the object is
automatically freed when the calling function exits. _S_u_c_h _a _f_u_n_c_t_i_o_n
_i_s _n_o_t _e_f_f_i_c_i_e_n_t_l_y _i_m_p_l_e_m_e_n_t_a_b_l_e _i_n _a _v_a_r_i_e_t_y _o_f _e_n_v_i_r_o_n_m_e_n_t_s_, _s_o _i_t
_w_a_s _n_o_t _a_d_o_p_t_e_d _i_n _t_h_e _S_t_a_n_d_a_r_d.
--
_____________________________________________________________________________
Daniel A. Glasser One of those things that goes
uwvax!per2!dag "BUMP!!!(ouch)" in the night.
---Persoft, Inc.---------465 Science Drive-------Madison, WI 53711-----------
More information about the Comp.unix.wizards
mailing list