strnlen function
Find the length of STRING, but scan at most MAXLEN characters. If no '\0' terminator is found in that many characters, return MAXLEN.
Implementation
int strnlen(
ffi.Pointer<ffi.Int8> __string,
int __maxlen,
) {
_strnlen ??= Libc().dylib.lookupFunction<
ffi.Uint64 Function(ffi.Pointer<ffi.Int8>, ffi.Uint64),
_dart_strnlen>('strnlen');
return _strnlen!(
__string,
__maxlen,
);
}