Adding strndup(3) to libc viable/useful?

Dag-Erling Smørgrav des at des.no
Thu Dec 4 10:46:54 PST 2008


Florian Smeets <flo at kasimir.com> writes:
> There are 13 ports in the ports tree right now that patch in strndup
> via a patch in the files/ dir, well actually 12 bring there own
> version of strndup and one replaces it with a call to malloc/strncpy.
>
> Would it make sense to add this to our libc? A patch which does this
> is available here at http://webmail.solomo.de/~flo/strndup.patch

Not a bad idea, but those ports patches would still be required for
compatibility with existing releases.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-arch mailing list