diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-08-07 19:20:44 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-08-07 19:20:44 -0700 |
commit | a647c9bd255c136f9e6e3e274ecf4253e9ead6d6 (patch) | |
tree | 049def46b332819b7652279909620ca1dd1af274 /math.c | |
parent | a91574fe283263a3f9d91fb257ecb2c5b0a97541 (diff) |
Replace index() call with strchr()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'math.c')
-rw-r--r-- | math.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |