From 9593fc545950782ed75f12f53238b07885559b2b Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 9 Jul 2018 22:28:25 -0700 Subject: remove ccan for now --- ccan/tal/str/test/run-strndup.c | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 ccan/tal/str/test/run-strndup.c (limited to 'ccan/tal/str/test/run-strndup.c') 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 -#include -#include -#include -#include -#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(); -} -- cgit v1.2.3