Rivoreo Source Code Repositories
src.rivoreo.one
/
devel
/
nativetools
/
732977ae9bb1eb8c4e6af6728223601eb6e23e10
/
.
/
nativelibc
/
string.c
blob: 280e78af2dee2ab9053fc7c05fca05ec755ea53c [
file
] [
log
] [
blame
] [
raw
]
#include
<string.h>
size_t
strnlen
(
const
char
*
s
,
size_t
maxlen
)
{
const
char
*
start
=
s
;
while
(
maxlen
--
>
0
&&
*
s
)
s
++;
return
s
-
start
;
}