diff options
| author | Ian Moffett <ian@osmora.org> | 2025-11-21 20:44:13 -0500 |
|---|---|---|
| committer | Ian Moffett <ian@osmora.org> | 2025-11-21 20:44:13 -0500 |
| commit | 97235de972fc156f7fe6370fda10f7bc72c30189 (patch) | |
| tree | e9eb8fe920fe6df3da35fcb64ecf0e6003b0b7cd /sys/inc/lib/string.h | |
| parent | 3536d0b1d93981e91cb016d08e54ce30de25fa01 (diff) | |
kern: lib: Add strncmp() function
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/inc/lib/string.h')
| -rw-r--r-- | sys/inc/lib/string.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/inc/lib/string.h b/sys/inc/lib/string.h index 0ad7053..2c21c36 100644 --- a/sys/inc/lib/string.h +++ b/sys/inc/lib/string.h @@ -54,6 +54,9 @@ int snprintf(char *s, size_t size, const char *fmt, ...); /* POSIX memcmp() */ int memcmp(const void *s1, const void *s2, size_t n); +/* POSIX strncmp() */ +int strncmp(const char *s1, const char *s2, size_t n); + /* Convert base int to string */ char *itoa(int64_t value, char *buf, int base); |
