From: Jim Meyering Date: Sun, 29 Jan 1995 05:33:05 +0000 (+0000) Subject: (parse_old_offset): Use strchr, not index. X-Git-Tag: textutils-1_12_1~305 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5695b2f051f107d6651930bb1822af9dc84fa41d;p=thirdparty%2Fcoreutils.git (parse_old_offset): Use strchr, not index. --- diff --git a/src/od.c b/src/od.c index 83b45ebc56..807635f600 100644 --- a/src/od.c +++ b/src/od.c @@ -1340,7 +1340,7 @@ parse_old_offset (s) /* Determine the radix we'll use to interpret S. If there is a `.', it's decimal, otherwise, if the string begins with `0X'or `0x', it's hexadecimal, else octal. */ - if (index (s, '.') != NULL) + if (strchr (s, '.') != NULL) radix = 10; else {