utils/macros.h: Add <ctype.h> and `foocmp' helper macros.
[mLib] / struct / t / dstr-putf-test.c
index 5de7870..462371d 100644 (file)
@@ -8,6 +8,7 @@
 #include <string.h>
 
 #include "dstr.h"
+#include "macros.h"
 
 static int win = 0, lose = 0;
 static dstr d = DSTR_INIT;
@@ -15,7 +16,7 @@ static char buf[1024];
 
 static void check(const char *what, const char *want)
 {
-  if (strcmp(want, d.buf) == 0)
+  if (STRCMP(want, ==, d.buf))
     win++;
   else {
     lose++;