actube/src/cw/cw_strlist_get_id.c
7u83@mail.ru d4fa4269e7 Some improvements with dbg levels
FossilOrigin-Name: 4f1f8f238cb3fd097504bfba3b51805d359135256160fe8fdba34908495ec50b
2018-03-17 18:32:44 +00:00

14 lines
205 B
C

#include <string.h>
#include "strlist.h"
int cw_strlist_get_id(struct cw_StrListElem *s,const char *str)
{
while ( s->id!=CW_STR_STOP){
if (strcmp(s->str,str)==0)
break;
s++;
}
return s->id;
}