Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
Main Page
Related Pages
+
Classes
Class List
Class Index
+
Class Members
+
All
_
c
d
e
f
g
i
k
l
m
n
p
q
r
s
t
w
x
+
Variables
_
c
d
e
f
g
i
k
l
m
n
p
q
r
s
t
w
x
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
p
q
r
s
t
u
v
w
+
Variables
_
b
c
d
e
f
h
i
l
n
p
t
v
w
+
Typedefs
_
a
b
c
d
f
i
j
n
s
t
u
v
w
Enumerator
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerator
Macros
Pages
memrchr.c
Go to the documentation of this file.
1
// Imported from musl Libc
2
3
#include <
string.h
>
4
5
void
*
__memrchr
(
const
void
*
/*m*/
/*m*/
,
int
/*c*/
/*c*/
,
size_t
/*n*/
/*n*/
);
6
7
void
*
__memrchr
(
const
void
* m,
int
c,
size_t
n)
8
{
9
const
unsigned
char
* s = m;
10
c = (
unsigned
char)c;
11
12
while
(n--)
13
{
14
if
(s[n] == c)
15
{
16
return
(
void
*)(uintptr_t)(s + n);
17
}
18
}
19
20
return
0;
21
}
string.h
__memrchr
void * __memrchr(const void *, int, size_t)
Definition:
memrchr.c:7
src
string
memrchr.c
Generated by
1.8.15