diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2017-09-15 15:40:54 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-09-15 02:49:27 -0500 |
commit | c77b9747531b79badb69bcd2e8c25fb250fa48d2 (patch) | |
tree | 5f1f656344c198ecf91407c0380990f23f94979a /libc/include | |
parent | d60fdbce2b4b4cebe325b7f7a0f63beb2bf187be (diff) | |
download | skiboot-c77b9747531b79badb69bcd2e8c25fb250fa48d2.zip skiboot-c77b9747531b79badb69bcd2e8c25fb250fa48d2.tar.gz skiboot-c77b9747531b79badb69bcd2e8c25fb250fa48d2.tar.bz2 |
libc: add strnlen()
Sometimes handy.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libc/include')
-rw-r--r-- | libc/include/string.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/include/string.h b/libc/include/string.h index e4b4fac..2172bdc 100644 --- a/libc/include/string.h +++ b/libc/include/string.h @@ -25,6 +25,7 @@ int strncasecmp(const char *s1, const char *s2, size_t n); char *strchr(const char *s, int c); char *strrchr(const char *s, int c); size_t strlen(const char *s); +size_t strnlen(const char *s, size_t n); char *strstr(const char *hay, const char *needle); char *strtok(char *src, const char *pattern); char *strdup(const char *src); |