demo.cpp
/* Get a function by name.
 */
Get a function by name.
Get a function by name .
Function * Support::SearchFunctionByName(Module & M, string strFunctionName)
{
	for(Module::iterator FI = M.begin(); FI != M.end(); FI ++ )
	{
		Function * f = &*FI;
		if(f->getName() == strFunctionName)
		{
			return f;
		}
	}
	return NULL;
}
Function * Support :: SearchFunctionByName ( Module & M , string strFunctionName ) { for ( Module :: iterator FI = M . begin ( ) ; FI != M . end ( ) ; FI ++ ) { Function * f = & * FI ; if ( f -> getName ( ) == strFunctionName ) { return f ; } } return NULL ; }
Get a function by name.
Get a function by name .