From: Jim Meyering Date: Tue, 8 Dec 1992 02:13:30 +0000 (+0000) Subject: (change_file_group): Define ISDIGIT and use it instead of isdigit. X-Git-Tag: ISDIGIT-bug-fix~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ffd97483cdc0d57fccc91fae0c7f4463c143c087;p=thirdparty%2Fcoreutils.git (change_file_group): Define ISDIGIT and use it instead of isdigit. --- diff --git a/src/chgrp.c b/src/chgrp.c index 57904ac490..3e6c82d7e9 100644 --- a/src/chgrp.c +++ b/src/chgrp.c @@ -24,6 +24,12 @@ #include #include "system.h" +#ifndef isascii +#define isascii(c) 1 +#endif + +#define ISDIGIT(c) (isascii (c) && isdigit (c)) + #ifndef _POSIX_VERSION struct group *getgrnam (); #endif @@ -260,7 +266,7 @@ isnumber (str) char *str; { for (; *str; str++) - if (!isdigit (*str)) + if (!ISDIGIT (*str)) return 0; return 1; }