diff options
author | Jim Meyering <jim@meyering.net> | 1994-12-10 05:41:16 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-12-10 05:41:16 +0000 |
commit | c95989d1484e91b263f94ff64f01246cb4177633 (patch) | |
tree | e9a54322c9519a6dd77d474b843c9b73aaa5e37e /src/dd.c | |
parent | 06f4d47a294af530aa375bd08ac02ee98008ee06 (diff) | |
download | coreutils-c95989d1484e91b263f94ff64f01246cb4177633.tar.xz |
(parse_conversion, scan_args): Use strr?chr instead of r?index.
Diffstat (limited to 'src/dd.c')
-rw-r--r-- | src/dd.c | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -55,16 +55,6 @@ #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++) |