library/src/blockclass/subclasses/BP_ConfigParser.cc
// retrieves a value from the config array by key
retrieves a value from the config array by key
retrieves a value from the config array by key
char * BP_ConfigParser::GetValByKey(char *key)
{
	size_t i = 0;
	for(;
		i < this->config_items_count;
		i++
		)
	{
		if(memcmp(this->config_items[i].token_used, key, bpstrlen(key)) == 0)
			return this->config_items[i].config_item_data;
	}
	return NULL;
}
char * BP_ConfigParser :: GetValByKey ( char * key ) { size_t i = 0 ; for ( ; i < this -> config_items_count ; i ++ ) { if ( memcmp ( this -> config_items [ i ] . token_used , key , bpstrlen ( key ) ) == 0 ) return this -> config_items [ i ] . config_item_data ; } return NULL ; }
retrieves a value from the config array by key
retrieves a value from the config array by key
// check for the key, and return the ata in the case we've found it