summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-08-07 19:20:44 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-08-07 19:20:44 -0700
commita647c9bd255c136f9e6e3e274ecf4253e9ead6d6 (patch)
tree049def46b332819b7652279909620ca1dd1af274
parenta91574fe283263a3f9d91fb257ecb2c5b0a97541 (diff)
Replace index() call with strchr()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/math.c b/math.c
index aff9c6e..c8ac1a8 100644
--- a/math.c
+++ b/math.c
@@ -186,7 +186,7 @@ static void
DrawDisplay(void)
{
if (strlen(dispstr) > 12) { /* strip out some decimal digits */
- char *estr = index(dispstr,'e'); /* search for exponent part */
+ char *estr = strchr(dispstr,'e'); /* search for exponent part */
if (!estr) dispstr[12]='\0'; /* no exp, just trunc. */
else {
char tmp[32];