From 97235de972fc156f7fe6370fda10f7bc72c30189 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 21 Nov 2025 20:44:13 -0500 Subject: kern: lib: Add strncmp() function Signed-off-by: Ian Moffett --- sys/inc/lib/string.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/inc') 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); -- cgit v1.2.3