aboutsummaryrefslogtreecommitdiffstats
path: root/test/mem/memchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/mem/memchr.c')
-rw-r--r--test/mem/memchr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/mem/memchr.c b/test/mem/memchr.c
new file mode 100644
index 0000000..d3fafaa
--- /dev/null
+++ b/test/mem/memchr.c
@@ -0,0 +1,5 @@
+#include <mem.h>
+
+static char const buf[] = "test";
+
+int main(void) { return calt_memchr(buf, 't', sizeof buf) == &buf[0] ? 0 : 1; }