From 5aba556f86e89985b5fa3cb674a9e0867e35c8ed Mon Sep 17 00:00:00 2001 From: John van Groningen Date: Wed, 30 Jun 2004 12:55:50 +0000 Subject: use atof to convert string to real because it is faster than sscanf --- scon.c | 3 +-- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3