diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-10 14:41:48 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-10 14:41:48 -0400 |
commit | 873f7cc1e9e8892a723bf19ee82dae663dbc015b (patch) | |
tree | 9da3b1606c066ee54be9551ea6cc6fede080862d /src/lib/libc/include/string.h | |
parent | fcb765eb6019ec41218d96815949835198503221 (diff) |
libc: string: Add strcmp()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/lib/libc/include/string.h')
-rw-r--r-- | src/lib/libc/include/string.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ -40,6 +40,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 * |