git: libc: Add strchrnul(), a glibc extension
Francois Tigeot
ftigeot at crater.dragonflybsd.org
Mon Mar 4 02:52:00 PST 2013
commit 8fd2f2436da10f369a452cf69f85b233a09c02f5
Author: François Tigeot <ftigeot at wolfpond.org>
Date: Sun Mar 3 20:04:26 2013 +0100
libc: Add strchrnul(), a glibc extension
* This function behaves like strchr() but returns a pointer to the
terminating \0 byte of the string instead of NULL if the character
was not found
* It was first implemented in glibc-2.1.1
Obtained-from: FreeBSD
Summary of changes:
include/string.h | 1 +
lib/libc/string/Makefile.inc | 6 ++++--
lib/libc/string/strchr.3 | 32 ++++++++++++++++++++++++++----
lib/libc/string/{strnlen.c => strchrnul.c} | 19 +++++++++---------
4 files changed, 43 insertions(+), 15 deletions(-)
copy lib/libc/string/{strnlen.c => strchrnul.c} (83%)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8fd2f2436da10f369a452cf69f85b233a09c02f5
--
DragonFly BSD source repository
More information about the Commits
mailing list