Deploy the new <ctype.h> and `foocmp' macros from mLib.
[catacomb] / progs / fibonacci.c
index 4b5a958..a494f62 100644 (file)
@@ -34,6 +34,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include <mLib/macros.h>
 #include <mLib/mdwopt.h>
 #include <mLib/quis.h>
 #include <mLib/report.h>
@@ -128,9 +129,9 @@ int main(int argc, char *argv[])
   lmin = mp_fromlong(MP_NEW, LONG_MIN);
   lmax = mp_fromlong(MP_NEW, LONG_MAX);
   p = argv[optind];
-  while (isspace((unsigned char)*p)) p++;
+  while (ISSPACE(*p)) p++;
   nn = mp_readstring(MP_NEW, argv[optind], &p, 0);
-  while (isspace((unsigned char)*p)) p++;
+  while (ISSPACE(*p)) p++;
   if (!nn || *p || MP_CMP(lmin, >, nn) || MP_CMP(nn, >, lmax))
     die(EXIT_FAILURE, "bad integer `%s'", argv[optind]);
   n = mp_tolong(nn);