Sign in
opensecura
/
3p
/
cheriot-rtos
/
e8d3881ceb8f6eb638ef5d50b23153ebc0591fe7
/
.
/
sdk
/
lib
/
string
/
strlen.c
blob: 65dba7b8643df1f5f7a480ca9d46839ddfbd71e7 [
file
] [
log
] [
blame
]
// Copyright Microsoft and CHERIoT Contributors.
// SPDX-License-Identifier: MIT
#include
<cdefs.h>
#include
<stddef.h>
size_t
__cheri_libcall strlen
(
const
char
*
str
)
{
const
char
*
s
;
for
(
s
=
str
;
*
s
;
++
s
)
;
return
(
s
-
str
);
}