fix for hex numbers in DBF_DOUBLE fields on vxWorks and Windows.

This commit is contained in:
zimoch
2013-03-11 15:46:48 +00:00
parent 8b7150d92e
commit 8a55d65e0a
+6
View File
@@ -60,6 +60,12 @@ epicsShareFunc double epicsStrtod(const char *str, char **endp)
cp++;
}
if (epicsStrnCaseCmp("0x", cp, 2) == 0) {
if (negative)
return strtol(str, endp, 16);
else
return strtoul(str, endp, 16);
}
if (!isalpha((int)*cp))
return strtod(str, endp);