libdl: first execute all destructors, then munmap library
[uclibc-ng.git] / libc / string / rawmemchr.c
blobf0cb7ee47b1e85c37e3a19a72f8993d34dc186d9
1 /*
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.
6 */
8 #include "_string.h"
10 #ifdef __USE_GNU
11 void *rawmemchr(const void *s, int c)
13 register const unsigned char *r = s;
15 while (*r != ((unsigned char)c)) ++r;
17 return (void *) r; /* silence the warning */
19 libc_hidden_def(rawmemchr)
20 #endif