MCPcopy 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
7size_t strlen(const char *str)
8{
9 const char *ptr = str;
10
11 while (*ptr++)
12 ;
13 return ptr - str - 1;
14}
15
16size_t strnlen(const char *str, size_t maxlen)
17{

Callers 15

setup_ep0Function · 0.85
usb_hid_set_layoutFunction · 0.85
keyboard_set_layoutFunction · 0.85
parse_long_optionsFunction · 0.85
getlineFunction · 0.85
strncpyFunction · 0.85
strcpyFunction · 0.85
strlcatFunction · 0.85
strrchrFunction · 0.85
strdupFunction · 0.85
strstrFunction · 0.85
strspnFunction · 0.85

Calls

no outgoing calls

Tested by 12

clipboardTestFunction · 0.68
mptable_initFunction · 0.68
test_b64_decodeFunction · 0.68
setup_ulzman_fileFunction · 0.68
test_hexstrtobinFunction · 0.68
test_get_file_sizeFunction · 0.68
test_read_fileFunction · 0.68
test_strlenFunction · 0.68
get_deviceFunction · 0.68
fmap_create_testFunction · 0.68