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