From: Jim Meyering Date: Tue, 8 Dec 1992 02:12:49 +0000 (+0000) Subject: (isnumber): Define ISDIGIT and use it instead of isdigit. X-Git-Tag: ISDIGIT-bug-fix~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dcded75afccc14f6efdd9e96c6450b65ae46634b;p=thirdparty%2Fcoreutils.git (isnumber): Define ISDIGIT and use it instead of isdigit. --- diff --git a/src/install.c b/src/install.c index c4d8c9de4b..f0bbbbd928 100644 --- a/src/install.c +++ b/src/install.c @@ -61,6 +61,12 @@ #include "system.h" #include "modechange.h" +#ifndef isascii +#define isascii(c) 1 +#endif + +#define ISDIGIT(c) (isascii (c) && isdigit (c)) + #ifdef _POSIX_VERSION #include #else @@ -476,7 +482,7 @@ isnumber (str) if (*str == 0) return 0; for (; *str; str++) - if (!isdigit (*str)) + if (!ISDIGIT (*str)) return 0; return 1; }