]> git.ozlabs.org Git - ccan/blob - ccan/json/test/common.h
check_type: fix incorrect documentation.
[ccan] / ccan / json / test / common.h
1 #include <ccan/json/json.c>
2 #include <ccan/tap/tap.h>
3
4 #include <errno.h>
5 #include <string.h>
6
7 static char *chomp(char *s)
8 {
9         char *e;
10         
11         if (s == NULL || *s == 0)
12                 return s;
13         
14         e = strchr(s, 0);
15         if (e[-1] == '\n')
16                 *--e = 0;
17         return s;
18 }