]> git.dujemihanovic.xyz Git - u-boot.git/commit
string: Add strcspn()
authorSimon Glass <sjg@chromium.org>
Fri, 19 May 2017 02:09:29 +0000 (20:09 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 1 Jun 2017 13:03:12 +0000 (07:03 -0600)
commita7d0021063661a65bfa47d4ec912da4e2cfa8f9a
treec4f46f6084a9f3b9ca3795d68195a9ed11274f66
parent6b45ba45fbcd1acc11c88ee1c15ed5fcb49f9e32
string: Add strcspn()

Add an implementation of strcspn() which returns the number of initial
characters that do not match any in a rejection list.

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