aboutsummaryrefslogtreecommitdiff
path: root/src/string/memchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/memchr.c')
-rw-r--r--src/string/memchr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/string/memchr.c b/src/string/memchr.c
index 65f0d789..1db4be7c 100644
--- a/src/string/memchr.c
+++ b/src/string/memchr.c
@@ -25,3 +25,11 @@ void *memchr(const void *src, int c, size_t n)
for (; n && *s != c; s++, n--);
return n ? (void *)s : 0;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif