diff options
author | John van Groningen | 2004-06-30 12:55:50 +0000 |
---|---|---|
committer | John van Groningen | 2004-06-30 12:55:50 +0000 |
commit | 5aba556f86e89985b5fa3cb674a9e0867e35c8ed (patch) | |
tree | a2a53c83e6062eb97c3e3239aaf51994d7c081cd /scon.c | |
parent | test for error when closing stdio (diff) |
use atof to convert string to real because it is faster than sscanf
Diffstat (limited to 'scon.c')
-rw-r--r-- | scon.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -596,8 +596,7 @@ int w_get_real (double *r_p) if (result){ s[n]='\0'; - if (sscanf (s,"%lg",r_p)!=1) - result=0; + *r_p=atof (s); } return result; |