]> git.notmuchmail.org Git - notmuch/blobdiff - compat/have_strcasestr.c
Add simplistic reimplementation of strcasestr to compat library
[notmuch] / compat / have_strcasestr.c
diff --git a/compat/have_strcasestr.c b/compat/have_strcasestr.c
new file mode 100644 (file)
index 0000000..c0fb762
--- /dev/null
@@ -0,0 +1,10 @@
+#define _GNU_SOURCE
+#include <strings.h>
+
+int main()
+{
+    char *found;
+    const char *haystack, *needle;
+
+    found = strcasestr(haystack, needle);
+}