improved find_str_in_array

This commit is contained in:
hyzboy 2023-03-04 05:08:46 +08:00
parent 59f7b25075
commit 643773c93d
No known key found for this signature in database
GPG Key ID: 067EE4525D4FB6D3

View File

@ -2462,12 +2462,12 @@ namespace hgl
}
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);
return(-1);
return(-1);
}
/**