1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-19 18:26:32 +02:00

(parse_conversion, scan_args): Use strr?chr instead of r?index.

This commit is contained in:
Jim Meyering
1994-12-10 05:41:16 +00:00
parent 06f4d47a29
commit c95989d148

View File

@@ -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++)