[PATCH] strdupa, strndupa

Jeff Johnston jjohnstn@redhat.com
Sat Jun 11 04:54:00 GMT 2011


On 06/10/2011 12:56 AM, Yaakov (Cygwin/X) wrote:
> 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
>
>

Sorry for the delay.  Patch applied with minor change to add underscores 
to macro argument names.

-- Jeff J.



More information about the Newlib mailing list