projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
faed18c
)
(parse_old_offset): Use strchr, not index.
author
Jim Meyering
<jim@meyering.net>
Sun, 29 Jan 1995 05:33:05 +0000
(
05:33
+0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 29 Jan 1995 05:33:05 +0000
(
05:33
+0000)
src/od.c
patch
|
blob
|
history
diff --git
a/src/od.c
b/src/od.c
index
83b45eb
..
807635f
100644
(file)
--- 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
{