aboutsummaryrefslogtreecommitdiffstats
path: root/asprintf.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-08-19 13:23:21 +0200
committerMattias Andrée <maandree@kth.se>2018-08-19 13:23:21 +0200
commita405c151df74d4d3b4d06c38feff6458bef375a9 (patch)
tree7a06fe944e440134ab278623b909e73e9f83d3a7 /asprintf.c
parentAdd str[r]n[case]str and str[n][case]cmpnul (diff)
downloadlibsimple-a405c151df74d4d3b4d06c38feff6458bef375a9.tar.gz
libsimple-a405c151df74d4d3b4d06c38feff6458bef375a9.tar.bz2
libsimple-a405c151df74d4d3b4d06c38feff6458bef375a9.tar.xz
Add str[n]caseeq[null] and some tests
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'asprintf.c')
-rw-r--r--asprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asprintf.c b/asprintf.c
index 78e00ca..25bf07b 100644
--- a/asprintf.c
+++ b/asprintf.c
@@ -26,7 +26,7 @@ main(void)
assert(libsimple_asprintf(&s, "%i %X", 99999, 255) == sizeof("99999 FF") - 1);
assert(s && s != old);
- assert(!strcmp(s, "99999 FF"));
+ assert(!strcmpnul(s, "99999 FF"));
free(s);
return 0;