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
+3 -2
View File
@@ -78,8 +78,9 @@ void SongOptions::FromString( CString sOptions )
vector<CString> matches;
if( mult.Compare(sBit, matches) )
{
int ret = sscanf( matches[0], "%f", &m_fMusicRate );
ASSERT( ret == 1 );
char *p = NULL;
m_fMusicRate = strtof( matches[0], &p );
ASSERT( p != matches[0] );
}
matches.clear();