1 #include <ccan/tal/str/str.h>
4 #include <ccan/tal/str/str.c>
5 #include <ccan/tap/tap.h>
8 int main(int argc, char *argv[])
14 memcpy(str, "hello", 5);
15 /* We should be fine to strndup src without nul terminator. */
16 copy = tal_strndup(NULL, str, 5);
17 ok1(!strcmp(copy, "hello"));