Changeset dd2cfa7 in mainline for kernel/generic/src/lib/string.c
- Timestamp:
- 2009-08-02T22:11:28Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 19490ce
- Parents:
- fa5526d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/lib/string.c
rfa5526d rdd2cfa7 638 638 * 639 639 */ 640 c onst char *str_chr(const char *str, wchar_t ch)640 char *str_chr(const char *str, wchar_t ch) 641 641 { 642 642 wchar_t acc; … … 646 646 while ((acc = str_decode(str, &off, STR_NO_LIMIT)) != 0) { 647 647 if (acc == ch) 648 return ( str + last);648 return (char *) (str + last); 649 649 last = off; 650 650 }
Note:
See TracChangeset
for help on using the changeset viewer.