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] |
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. Yaakov Cygwin/X
Attachment:
newlib-strdupa.patch
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |