Sign in
opensecura
/
3p
/
cheriot-rtos
/
e8d3881ceb8f6eb638ef5d50b23153ebc0591fe7
/
.
/
sdk
/
lib
/
string
/
strchr.c
blob: 6af6ad6ff8b49b661c9a545f1acfbbb34e2ba7eb [
file
] [
log
] [
blame
]
#include
<string.h>
char
*
__cheri_libcall strchr
(
const
char
*
s
,
int
intChar
)
{
char
c
=
(
char
)
intChar
;
while
(*
s
!=
c
)
{
if
(!*
s
++)
{
return
NULL
;
}
}
return
(
char
*)
s
;
}