aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-08-11 23:28:18 -0400
committerDavid Robillard <d@drobilla.net>2022-01-28 21:57:07 -0500
commita8ffb15c4a0566fabb50c94524e881ba2036dd1a (patch)
tree4494c45d8101f9de631f19f391d86033fa5b970d /include/serd
parentfc9ca54c77241fc33e59a3b8fb682cbc848b1288 (diff)
downloadserd-a8ffb15c4a0566fabb50c94524e881ba2036dd1a.tar.gz
serd-a8ffb15c4a0566fabb50c94524e881ba2036dd1a.tar.bz2
serd-a8ffb15c4a0566fabb50c94524e881ba2036dd1a.zip
Expose serd_strncasecmp in public API
Diffstat (limited to 'include/serd')
-rw-r--r--include/serd/serd.h12
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
@{