sqldata/parameters.cpp
// Get integer value or the default
Get integer value or the default
Get integer value or the default
int Parameters::GetInt(const char *name, int def)
{
	const char *value = Get(name);
	if(Str::IsSet(value))
	{
		int num = def;
        sscanf(value, "%d", &num);
        if(num != def)
			return num;
	}
	return def;
}
int Parameters :: GetInt ( const char * name , int def ) { const char * value = Get ( name ) ; if ( Str :: IsSet ( value ) ) { int num = def ; sscanf ( value , " " , & num ) ; if ( num != def ) return num ; } return def ; }
Get integer value or the default
Get integer value or the default