Skip to content
Commit 11d200e9 authored by Grant Likely's avatar Grant Likely
Browse files

lib: add glibc style strchrnul() variant



The strchrnul() variant helpfully returns a the end of the string
instead of a NULL if the requested character is not found. This can
simplify string parsing code since it doesn't need to expicitly check
for a NULL return. If a valid string pointer is passed in, then a valid
null terminated string will always come back out.

Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
parent b44aa25d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment