zabbix-agent2/src/libs/zbxserver/expression.c
/******************************************************************************
 *                                                                            *
 * Function: zbx_host_macro_index                                             *
 *                                                                            *
 * Purpose: extract index from valid indexed host macro                       *
 *                                                                            *
 * Return value: The index or -1 if it was not valid indexed host macro       *
 *                                                                            *
 ******************************************************************************/
zbx_host_macro_index

Purpose: extract index from valid indexed host macro

Return value: The index or -1 if it was not valid indexed host macro
zbx_host_macro_index Purpose : extract index from valid indexed host macro Return value : The index or - 1 if it was not valid indexed host macro
int	zbx_host_macro_index(const char *macro)
{
	zbx_strloc_t	loc;
	int		func_num;
	loc.l = 0;
	loc.r = strlen(macro) - 1;
	if (NULL != macro_in_list(macro, loc, host_macros, &func_num))
		return func_num;
	return -1;
}
int zbx_host_macro_index ( const char * macro ) { zbx_strloc_t loc ; int func_num ; loc . l = 0 ; loc . r = strlen ( macro ) - 1 ; if ( NULL != macro_in_list ( macro , loc , host_macros , & func_num ) ) return func_num ; return -1 ; }
Function: zbx_host_macro_index                                             
                                                                            
 Purpose: extract index from valid indexed host macro                       
                                                                            
 Return value: The index or -1 if it was not valid indexed host macro
Function : zbx_host_macro_index Purpose : extract index from valid indexed host macro Return value : The index or - 1 if it was not valid indexed host macro