summaryrefslogtreecommitdiff
path: root/ccan/tal/str/test/run-strndup.c
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2018-07-09 22:28:25 -0700
committerWilliam Casarin <jb55@jb55.com>2018-07-09 22:31:48 -0700
commit9593fc545950782ed75f12f53238b07885559b2b (patch)
tree9c7c2f7cbb427c54e9184cb61eedce737a6cbc6f /ccan/tal/str/test/run-strndup.c
parentbd8c223756d2f912526ecef53bae0cc8e0c63442 (diff)
remove ccan for now
Diffstat (limited to 'ccan/tal/str/test/run-strndup.c')
-rw-r--r--ccan/tal/str/test/run-strndup.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/ccan/tal/str/test/run-strndup.c b/ccan/tal/str/test/run-strndup.c
deleted file mode 100644
index 55e35fd..0000000
--- a/ccan/tal/str/test/run-strndup.c
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <ccan/tal/str/str.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <ccan/tal/str/str.c>
-#include <ccan/tap/tap.h>
-#include "helper.h"
-
-int main(void)
-{
- char *str, *copy;
-
- plan_tests(1);
- str = malloc(5);
- memcpy(str, "hello", 5);
- /* We should be fine to strndup src without nul terminator. */
- copy = tal_strndup(NULL, str, 5);
- ok1(!strcmp(copy, "hello"));
- tal_free(copy);
- free(str);
-
- return exit_status();
-}