This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] strdupa, strndupa


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]