From 873f7cc1e9e8892a723bf19ee82dae663dbc015b Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 10 Oct 2025 14:41:48 -0400 Subject: libc: string: Add strcmp() Signed-off-by: Ian Moffett --- src/lib/libc/include/string.h | 10 ++++++++++ 1 file changed, 10 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 11da895..bce2950 100644 --- a/src/lib/libc/include/string.h +++ b/src/lib/libc/include/string.h @@ -39,6 +39,16 @@ */ size_t strlen(const char *s); +/* + * Compare a string against another + * + * @s1: First string to compare + * @s2: Second string to compare + * + * Returns zero if strings are equal + */ +int strcmp(const char *s1, const char *s2); + /* * Get the length of a string with a maximum * length -- cgit v1.2.3