~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
progs/perftest.c: Use from Glibc syscall numbers.
[catacomb]
/
progs
/
factorial.c
diff --git
a/progs/factorial.c
b/progs/factorial.c
index
975c698
..
ece0b30
100644
(file)
--- a/
progs/factorial.c
+++ b/
progs/factorial.c
@@
-34,6
+34,7
@@
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
+#include <mLib/macros.h>
#include <mLib/mdwopt.h>
#include <mLib/quis.h>
#include <mLib/report.h>
#include <mLib/mdwopt.h>
#include <mLib/quis.h>
#include <mLib/report.h>
@@
-130,10
+131,10
@@
int main(int argc, char *argv[])
}
ulmax = mp_fromulong(MP_NEW, ULONG_MAX);
p = argv[optind];
}
ulmax = mp_fromulong(MP_NEW, ULONG_MAX);
p = argv[optind];
- while (
isspace((unsigned char)
*p))
+ while (
ISSPACE(
*p))
p++;
xx = mp_readstring(MP_NEW, argv[optind], &p, 0);
p++;
xx = mp_readstring(MP_NEW, argv[optind], &p, 0);
- while (
isspace((unsigned char)
*p))
+ while (
ISSPACE(
*p))
p++;
if (!xx || *p || MP_CMP(xx, <, MP_ZERO) || MP_CMP(xx, >, ulmax))
die(EXIT_FAILURE, "bad integer `%s'", argv[optind]);
p++;
if (!xx || *p || MP_CMP(xx, <, MP_ZERO) || MP_CMP(xx, >, ulmax))
die(EXIT_FAILURE, "bad integer `%s'", argv[optind]);