From bf1a7ec34836c44ff7c0b670ec95f3e40455d51a Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 15 Oct 2025 14:51:01 -0400 Subject: libc: string: Add memcmp() function Signed-off-by: Ian Moffett --- src/lib/libc/include/string.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lib/libc/include/string.h') diff --git a/src/lib/libc/include/string.h b/src/lib/libc/include/string.h index 1572400..360af12 100644 --- a/src/lib/libc/include/string.h +++ b/src/lib/libc/include/string.h @@ -93,4 +93,13 @@ void *memset(void *s, int c, size_t n); */ char *itoa(int64_t value, char *buf, int base); +/* + * Compare two byte streams + * + * @s1: Stream one + * @s2: Stream two + * @n: Max bytes to compare + */ +int memcmp(const void *s1, const void *s2, size_t n); + #endif /* _STRING_H */ -- cgit v1.2.3