libc: Add strchrnul(), a glibc extension
authorFrançois Tigeot <ftigeot@wolfpond.org>
Sun, 3 Mar 2013 19:04:26 +0000 (20:04 +0100)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Mon, 4 Mar 2013 10:51:31 +0000 (11:51 +0100)
commit8fd2f2436da10f369a452cf69f85b233a09c02f5
treefd8760459610269d9032b47111feeb1c5ceb407b
parent893c125d2ded6f26e052b1e55b271ca86542b614
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
include/string.h
lib/libc/string/Makefile.inc
lib/libc/string/strchr.3
lib/libc/string/strchrnul.c [new file with mode: 0644]