string: Add strchrnul()
authorSimon Glass <sjg@chromium.org>
Fri, 19 May 2017 02:09:28 +0000 (20:09 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 1 Jun 2017 13:03:12 +0000 (07:03 -0600)
commit6b45ba45fbcd1acc11c88ee1c15ed5fcb49f9e32
treeb4f0c569dbbe93e4723f2add9e26ae48a232c3fc
parenta4b8e372d5b15d7dd302cac667e87049b59b13c7
string: Add strchrnul()

This functions works like strchr() but returns the end of the string if
the character is not found. Add an implementation of this.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/linux/string.h
lib/string.c