actube/src/cw/cw_strlist_get_id.c
7u83@mail.ru f4ebe841a5 renamed capwap directory to cw.
FossilOrigin-Name: 8a43dd9d05a4cb73210243ddd8df2a26f16c7ef2c4d4e36ab446de1f65d88223
2016-03-03 19:46:20 +00:00

14 lines
206 B
C

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