Use epicsScanFloat/epicsScanDouble rather than sscanf.

This allows proper handling of Nan/Inf on all architectures.
This commit is contained in:
W. Eric Norum
2004-10-12 17:45:31 +00:00
parent 25c797b212
commit 0dc034962c
18 changed files with 53 additions and 52 deletions
+2 -2
View File
@@ -37,7 +37,7 @@
*-***************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <epicsStdlib.h>
#include <string.h>
#include <limits.h>
@@ -198,7 +198,7 @@ double *pDouble /* O pointer to place to store value */
ptext = envGetConfigParam(pParam, sizeof text, text);
if (ptext != NULL) {
count = sscanf(text, "%lf", pDouble);
count = epicsScanDouble(text, pDouble);
if (count == 1) {
return 0;
}