2 * Copyright (C) 2002 Manuel Novoa III
3 * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
5 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
11 # define Wstrrchr wcsrchr
13 # define Wstrrchr strrchr
16 Wchar
*Wstrrchr(register const Wchar
*s
, Wint c
)
18 register const Wchar
*p
;
22 if (*s
== (Wchar
) c
) {
27 return (Wchar
*) p
; /* silence the warning */
30 libc_hidden_weak(strrchr
)
31 # ifdef __UCLIBC_SUSV3_LEGACY__
32 weak_alias(strrchr
,rindex
)