Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
34
size_t
35
strnlen(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_string
Function · 0.85
vdev_raidz_impl_set
Function · 0.85
dsl_valid_rename
Function · 0.85
dsl_dir_rename_check
Function · 0.85
aes_impl_set
Function · 0.85
gcm_impl_set
Function · 0.85
zfs_append_partition
Function · 0.85
libzfs_envvar_is_set
Function · 0.85
uu_strndup
Function · 0.85
print_set_creat_perms
Function · 0.85
fdt_stringlist_count
Function · 0.85
fdt_stringlist_search
Function · 0.85
Calls
no outgoing calls
Tested by
3
pipeline_spec_parse
Function · 0.68
pipeline_iospec_parse
Function · 0.68
test_realloc_socket
Function · 0.68