Changeset a5454cf in mainline for uspace/lib/c/generic/str.c
- Timestamp:
- 2011-08-24T21:20:15Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 980311e
- Parents:
- c065743
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/str.c
rc065743 ra5454cf 890 890 else 891 891 return NULL; 892 }893 894 /** Find last occurence of character in wide string.895 *896 * @param wstr String to search.897 * @param ch Character to look for.898 *899 * @return Pointer to character in @a wstr or NULL if not found.900 */901 wchar_t *wstr_rchr(const wchar_t *wstr, wchar_t ch)902 {903 const wchar_t *res = NULL;904 while (*wstr) {905 if (*wstr == ch)906 res = wstr;907 wstr++;908 }909 return (wchar_t *) res;910 892 } 911 893
Note:
See TracChangeset
for help on using the changeset viewer.