2015-04-11 19:02:21 +02:00
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "strlist.h"
|
|
|
|
|
2015-10-18 09:49:14 +02:00
|
|
|
int cw_strlist_get_id(struct cw_strlist_elem *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;
|
|
|
|
}
|