diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-15 14:51:01 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-15 14:51:01 -0400 |
commit | bf1a7ec34836c44ff7c0b670ec95f3e40455d51a (patch) | |
tree | 564fb37520100569537b34dd2988d7b2d962d2b1 /src/lib/libc/include | |
parent | dfebc85378c448602946fc39d1ff3943dc03edec (diff) |
libc: string: Add memcmp() function
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/lib/libc/include')
-rw-r--r-- | src/lib/libc/include/string.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 */ |