Inital ...

FossilOrigin-Name: 6a4d9c2728a7eaff7122cf7ef069b90fe4c75ad863d2b38b6eaffc91bef55a92
This commit is contained in:
7u83@mail.ru
2015-04-11 17:02:21 +00:00
parent 73aba62d2b
commit befb69ea2b
5 changed files with 211 additions and 0 deletions

View File

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