improved find_str_in_array
This commit is contained in:
parent
59f7b25075
commit
643773c93d
@ -2462,12 +2462,12 @@ namespace hgl
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
const int find_str_array(int count,const T **str_array,const T *str)
|
const int find_str_in_array(int count,const T **str_array,const T *str)
|
||||||
{
|
{
|
||||||
for(int i=1;i<count;i++)
|
for(int i=0;i<count;i++)
|
||||||
if(stricmp(str_array[i],str)==0)return(i);
|
if(stricmp(str_array[i],str)==0)return(i);
|
||||||
|
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user