2015-04-11 19:02:21 +02:00
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "strlist.h"
|
|
|
|
|
2018-03-17 19:32:44 +01:00
|
|
|
int cw_strlist_get_id(struct cw_StrListElem *s,const char *str)
|
2015-04-11 19:02:21 +02:00
|
|
|
{
|
|
|
|
while ( s->id!=CW_STR_STOP){
|
|
|
|
if (strcmp(s->str,str)==0)
|
|
|
|
break;
|
|
|
|
s++;
|
|
|
|
}
|
|
|
|
return s->id;
|
|
|
|
}
|