for(i = allitems; i; i = i->next)
if(!i->matched && !strncasecmp(pattern, i->text, plen))
for(i = allitems; i; i = i->next)
if(!i->matched && !strncasecmp(pattern, i->text, plen))
for (i = allitems; i; i = i->next)
if(!i->matched && strcasestr(i->text, pattern))
for (i = allitems; i; i = i->next)
if(!i->matched && strcasestr(i->text, pattern))