2015-04-11 19:00:51 +02:00
|
|
|
|
|
|
|
#include "strlist.h"
|
2015-03-31 08:09:13 +02:00
|
|
|
|
2018-03-17 19:32:44 +01:00
|
|
|
const char * cw_strlist_get_str(struct cw_StrListElem *s,int id)
|
2015-03-31 08:09:13 +02:00
|
|
|
{
|
2015-04-10 17:14:55 +02:00
|
|
|
while ( s->id!=CW_STR_STOP){
|
2015-03-31 08:09:13 +02:00
|
|
|
if (s->id==id)
|
|
|
|
break;
|
|
|
|
s++;
|
|
|
|
}
|
|
|
|
return s->str;
|
|
|
|
}
|
|
|
|
|