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 Wmemchr wmemchr
14 # define Wmemchr memchr
17 Wvoid *Wmemchr(const Wvoid *s, Wint c, size_t n)
19 register const Wuchar *r = (const Wuchar *) s;
21 /* bcc can optimize the counter if it thinks it is a pointer... */
22 register const char *np = (const char *) n;
28 if (*r == ((Wuchar)c)) {
29 return (Wvoid *) r; /* silence the warning */
39 libc_hidden_def(Wmemchr)