[uClibc]strndup
David Schleef
ds at schleef.org
Wed Oct 10 21:21:31 UTC 2001
On Tue, Oct 09, 2001 at 04:00:34PM -0700, Stefan Soucek wrote:
> Howdy,
>
> I was wondering if uClibc currently supports strndup(). If've looked at the
> latest string.h and I find that the bottom section where bits/string2.h is
> included (which has a macro for strndup) is #if-0-ed out. Am I overlooking
> something here?
strndup() is a GNU extension. It's really easy to write, although
it is unclear whether the allocated length should always be "size"
or the min(length of the string + 1, size).
dave...
More information about the uClibc
mailing list