sscanf("%f") -> strtof()

This commit is contained in:
Glenn Maynard
2004-08-10 22:19:06 +00:00
parent aad73b53e9
commit f0c0a532f9
4 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ bool IniFile::GetValue(const CString &keyname, const CString &valuename, float&
CString sValue;
if( !GetValue(keyname,valuename,sValue) )
return false;
sscanf( sValue.c_str(), "%f", &value );
value = strtof( sValue, NULL );
return true;
}