diff options
Diffstat (limited to 'include/serd')
-rw-r--r-- | include/serd/serd.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h index f30026ca..96890dbd 100644 --- a/include/serd/serd.h +++ b/include/serd/serd.h @@ -293,6 +293,18 @@ char* SERD_NULLABLE serd_canonical_path(const char* SERD_NONNULL path); /** + Compare two strings ignoring case. + + @return Less than, equal to, or greater than zero if `s1` is less than, + equal to, or greater than `s2`, respectively. +*/ +SERD_PURE_API +int +serd_strncasecmp(const char* SERD_NONNULL s1, + const char* SERD_NONNULL s2, + size_t n); + +/** @} @defgroup serd_io_functions I/O Function Types @{ |