chiark / gitweb /
utils/macros.h: Add <ctype.h> and `foocmp' helper macros.
[mLib] / trace / trace.c
index 2681cd32e456c6f621f96862ea1fac993f21d324..e06bf7bd2ce09fecbe7e3447184f831f15334ef2 100644 (file)
@@ -38,6 +38,7 @@
 /* --- Local headers --- */
 
 #include "dstr.h"
+#include "macros.h"
 #include "quis.h"
 #include "trace.h"
 
@@ -132,7 +133,7 @@ void trace_block(unsigned l, const char *s, const void *b, size_t sz)
     dstr_puts(&d, ": ");
     for (i = 0; i < 8; i++) {
       if (i < sz)
-       dstr_putc(&d, isprint(p[i]) ? p[i] : '.');
+       dstr_putc(&d, ISPRINT(p[i]) ? p[i] : '.');
       else
        dstr_putc(&d, '*');
     }