summaryrefslogtreecommitdiff
path: root/scon.c
diff options
context:
space:
mode:
authorJohn van Groningen2004-06-30 12:55:50 +0000
committerJohn van Groningen2004-06-30 12:55:50 +0000
commit5aba556f86e89985b5fa3cb674a9e0867e35c8ed (patch)
treea2a53c83e6062eb97c3e3239aaf51994d7c081cd /scon.c
parenttest 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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/scon.c b/scon.c
index 8443d0a..f9d6c64 100644
--- a/scon.c
+++ b/scon.c
@@ -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;