Changeset a5454cf in mainline for uspace/lib/c/generic/str.c


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().

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.