5 #include <ccan/mem/mem.h>
6 #include <ccan/tap/tap.h>
10 char haystack[] = "abcd\0efgh";
14 /* This is how many tests you plan to run */
17 p = memcheck(haystack, sizeof(haystack));
19 pc = memcheck(haystack, sizeof(haystack));
21 p = memcheck(p, sizeof(haystack));
23 pc = memcheck(pc, sizeof(haystack));
26 /* This exits depending on whether all tests passed */