summaryrefslogtreecommitdiff
path: root/src/dd.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-12-10 05:41:16 +0000
committerJim Meyering <jim@meyering.net>1994-12-10 05:41:16 +0000
commitc95989d1484e91b263f94ff64f01246cb4177633 (patch)
treee9a54322c9519a6dd77d474b843c9b73aaa5e37e /src/dd.c
parent06f4d47a294af530aa375bd08ac02ee98008ee06 (diff)
downloadcoreutils-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.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/dd.c b/src/dd.c
index 5d8aa6e6e..c53ee57a1 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -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++)