]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(change_file_group): Define ISDIGIT and use it instead of isdigit.
authorJim Meyering <jim@meyering.net>
Tue, 8 Dec 1992 02:13:30 +0000 (02:13 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 8 Dec 1992 02:13:30 +0000 (02:13 +0000)
src/chgrp.c

index 57904ac490b24277988687cf10018f61f40831ff..3e6c82d7e96791dc7962a1be1268474ac598c042 100644 (file)
 #include <getopt.h>
 #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;
 }