Changeset 980311e in mainline for uspace/lib/c/generic/str.c


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

Remove wstr_chr().

File:
1 edited

Legend:

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

    ra5454cf r980311e  
    873873       
    874874        return (char *) res;
    875 }
    876 
    877 /** Find first occurence of character in wide string.
    878  *
    879  * @param wstr String to search.
    880  * @param ch  Character to look for.
    881  *
    882  * @return Pointer to character in @a wstr or NULL if not found.
    883  */
    884 wchar_t *wstr_chr(const wchar_t *wstr, wchar_t ch)
    885 {
    886         while (*wstr && *wstr != ch)
    887                 wstr++;
    888         if (*wstr)
    889                 return (wchar_t *) wstr;
    890         else
    891                 return NULL;
    892875}
    893876
Note: See TracChangeset for help on using the changeset viewer.