Xin LI
cad56660e5
Replace strndup with OpenBSD's implementation.
...
MFC after: 2 weeks
2015-08-26 23:28:10 +00:00
Ed Maste
3fb3b97c4d
Renumber clauses to reduce diffs to other versions
...
NetBSD, OpenBSD, and Android's Bionic number the clauses 1 through 3,
so follow suit to make comparison easier.
2013-05-28 20:57:40 +00:00
Ed Schouten
61d38d61e2
Implement strndup(3) using strnlen(3).
...
This makes the implementation a bit more consistent with strdup(3),
which uses strlen(3).
2010-02-02 19:02:08 +00:00
Konstantin Belousov
f0eca40a14
Import the strndup(3) function.
...
Copyright attribution is kept the same as in original NetBSD source.
Submitted by: Florian Smeets <flo kasimir com>
Obtained from: NetBSD
MFC after: 2 weeks
2008-12-06 09:37:54 +00:00