Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4311 → Rev 4312

/trunk/kernel/generic/src/lib/string.c
641,10 → 641,12
{
wchar_t acc;
size_t off = 0;
size_t last = 0;
while ((acc = str_decode(str, &off, STR_NO_LIMIT)) != 0) {
if (acc == ch)
return (str + off);
return (str + last);
last = off;
}
return NULL;