Changeset a5454cf in mainline


Ignore:
Timestamp:
2011-08-24T21:20:15Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
980311e
Parents:
c065743
Message:

Remove wstr_rchr().

Location:
uspace/lib/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/str.c

    rc065743 ra5454cf  
    890890        else
    891891                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;
    910892}
    911893
  • uspace/lib/c/include/str.h

    rc065743 ra5454cf  
    9191extern char *str_rchr(const char *str, wchar_t ch);
    9292extern wchar_t *wstr_chr(const wchar_t *wstr, wchar_t ch);
    93 extern wchar_t *wstr_rchr(const wchar_t *wstr, wchar_t ch);
    9493
    9594extern 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.