From ffd97483cdc0d57fccc91fae0c7f4463c143c087 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 8 Dec 1992 02:13:30 +0000 Subject: [PATCH] (change_file_group): Define ISDIGIT and use it instead of isdigit. --- src/chgrp.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; } -- 2.47.3