Changeset a5454cf in mainline
- 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
- Location:
- uspace/lib/c
- Files:
-
- 2 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 -
uspace/lib/c/include/str.h
rc065743 ra5454cf 91 91 extern char *str_rchr(const char *str, wchar_t ch); 92 92 extern wchar_t *wstr_chr(const wchar_t *wstr, wchar_t ch); 93 extern wchar_t *wstr_rchr(const wchar_t *wstr, wchar_t ch);94 93 95 94 extern bool wstr_linsert(wchar_t *str, wchar_t ch, size_t pos, size_t max_pos);
Note:
See TracChangeset
for help on using the changeset viewer.