bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnulib] lib/setenv.c


From: Bruno Haible
Subject: Re: [Bug-gnulib] lib/setenv.c
Date: Mon, 2 Dec 2002 19:58:12 +0100 (CET)

Simon Josefsson writes:
> Why can't setenv.c use malloc() instead which is much more portable and
> standards compliant than alloca()?

Indeed setenv.c could use alloca() and freea() as defined through:

#if HAVE_ALLOCA
#define freea(p)
#else
#define alloca(n) xmalloc(n)
#define freea(p) free(p)
#endif

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]