]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(parse_conversion, scan_args): Use strr?chr instead of r?index.
authorJim Meyering <jim@meyering.net>
Sat, 10 Dec 1994 05:41:16 +0000 (05:41 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 10 Dec 1994 05:41:16 +0000 (05:41 +0000)
src/dd.c

index 5d8aa6e6eafe8f46ed4116ffb5893b07cf0efb47..c53ee57a11c57fbdfebce3f25fc815aface477dd 100644 (file)
--- a/src/dd.c
+++ b/src/dd.c
 
 #include <config.h>
 #include <stdio.h>
-#include <ctype.h>
-
-#if !defined (isascii) || defined (STDC_HEADERS)
-#undef isascii
-#define isascii(c) 1
-#endif
-
-#define ISLOWER(c) (isascii (c) && islower (c))
-#define ISUPPER(c) (isascii (c) && isupper (c))
-#define ISDIGIT(c) (isascii (c) && isdigit (c))
 
 #define SWAB_ALIGN_OFFSET 2
 
@@ -844,7 +834,7 @@ scanargs (argc, argv)
       char *name, *val;
 
       name = argv[i];
-      val = index (name, '=');
+      val = strchr (name, '=');
       if (val == NULL)
        {
          error (0, 0, "unrecognized option `%s'", name);
@@ -961,7 +951,7 @@ parse_conversion (str)
 
   do
     {
-      new = index (str, ',');
+      new = strchr (str, ',');
       if (new != NULL)
        *new++ = '\0';
       for (i = 0; conversions[i].convname != NULL; i++)