MCPcopy Create free account
hub / github.com/F-Stack/f-stack / strnlen

Function strnlen

freebsd/libkern/strnlen.c:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32#include <sys/libkern.h>
33
34size_t
35strnlen(const char *s, size_t maxlen)
36{
37 size_t len;
38
39 for (len = 0; len < maxlen; len++, s++) {
40 if (!*s)
41 break;
42 }
43 return (len);
44}

Callers 15

proc_copyin_stringFunction · 0.85
vdev_raidz_impl_setFunction · 0.85
dsl_valid_renameFunction · 0.85
dsl_dir_rename_checkFunction · 0.85
aes_impl_setFunction · 0.85
gcm_impl_setFunction · 0.85
zfs_append_partitionFunction · 0.85
libzfs_envvar_is_setFunction · 0.85
uu_strndupFunction · 0.85
print_set_creat_permsFunction · 0.85
fdt_stringlist_countFunction · 0.85
fdt_stringlist_searchFunction · 0.85

Calls

no outgoing calls

Tested by 3

pipeline_spec_parseFunction · 0.68
pipeline_iospec_parseFunction · 0.68
test_realloc_socketFunction · 0.68