Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coreboot/coreboot
/ strlen
Function
strlen
src/commonlib/bsd/string.c:7–14 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
5
#include <stddef.h>
6
7
size_t strlen(const char *str)
8
{
9
const char *ptr = str;
10
11
while (*ptr++)
12
;
13
return ptr - str - 1;
14
}
15
16
size_t strnlen(const char *str, size_t maxlen)
17
{
Callers
15
setup_ep0
Function · 0.85
usb_hid_set_layout
Function · 0.85
keyboard_set_layout
Function · 0.85
parse_long_options
Function · 0.85
getline
Function · 0.85
strncpy
Function · 0.85
strcpy
Function · 0.85
strlcat
Function · 0.85
strrchr
Function · 0.85
strdup
Function · 0.85
strstr
Function · 0.85
strspn
Function · 0.85
Calls
no outgoing calls
Tested by
12
clipboardTest
Function · 0.68
mptable_init
Function · 0.68
test_b64_decode
Function · 0.68
setup_ulzman_file
Function · 0.68
test_cbfs_filename_not_terminated
Function · 0.68
test_cbfs_filename_terminated_but_too_long
Function · 0.68
test_hexstrtobin
Function · 0.68
test_get_file_size
Function · 0.68
test_read_file
Function · 0.68
test_strlen
Function · 0.68
get_device
Function · 0.68
fmap_create_test
Function · 0.68