aboutsummaryrefslogtreecommitdiff
path: root/src/string/strndup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/strndup.c')
-rw-r--r--src/string/strndup.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/string/strndup.c b/src/string/strndup.c
index 617d27ba..ac9c5ea3 100644
--- a/src/string/strndup.c
+++ b/src/string/strndup.c
@@ -10,3 +10,11 @@ char *strndup(const char *s, size_t n)
d[l] = 0;
return d;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif