- Timestamp:
- 2009-04-21T16:36:52Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 253d3d0
- Parents:
- c2417bc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/string.c
rc2417bc rf2d2c7ba 594 594 wchar_t acc; 595 595 size_t off = 0; 596 size_t last = 0; 596 597 597 598 while ((acc = str_decode(str, &off, STR_NO_LIMIT)) != 0) { 598 599 if (acc == ch) 599 return (str + off); 600 return (str + last); 601 last = off; 600 602 } 601 603 … … 614 616 wchar_t acc; 615 617 size_t off = 0; 616 char *res;617 618 res = NULL;618 size_t last = 0; 619 char *res = NULL; 620 619 621 while ((acc = str_decode(str, &off, STR_NO_LIMIT)) != 0) { 620 622 if (acc == ch) 621 res = (str + off); 622 } 623 623 res = (str + last); 624 last = off; 625 } 626 624 627 return res; 625 628 }
Note:
See TracChangeset
for help on using the changeset viewer.