This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] strdupa, strndupa
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: newlib <newlib at sources dot redhat dot com>
- Date: Thu, 09 Jun 2011 23:56:07 -0500
- Subject: Re: [PATCH] strdupa, strndupa
- References: <BANLkTimvzJ_u7fOhJRGEVOeFDm69BGtsGA@mail.gmail.com>
On Thu, 2011-05-26 at 05:03 -0500, Yaakov (Cygwin/X) wrote:
> The attached patch adds strdupa(3) and strndupa(3):
>
> http://www.kernel.org/doc/man-pages/online/pages/man3/strdup.3.html
>
> These functions must be macros, as they use alloca(3) (or more
> precisely, __builtin_alloca, as they are only available with GCC).
> The code is adapted from our own strdup code.
Ping?
Yaakov
Cygwin/X