Sign in
android
/
platform
/
external
/
musl
/
refs/heads/android13-d4-release
/
.
/
src
/
string
/
memrchr.c
blob: e51748b805654c2fc0879be6829cfd38fe737cda [
file
] [
log
] [
blame
] [
edit
]
#include
<string.h>
void
*
__memrchr
(
const
void
*
m
,
int
c
,
size_t
n
)
{
const
unsigned
char
*
s
=
m
;
c
=
(
unsigned
char
)
c
;
while
(
n
--)
if
(
s
[
n
]==
c
)
return
(
void
*)(
s
+
n
);
return
0
;
}
weak_alias
(
__memrchr
,
memrchr
);