MCPcopy Index your code
hub / github.com/GJDuck/e9patch / strlen

Function strlen

examples/stdlib.c:2632–2638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2630}
2631
2632static size_t strlen(const char *s)
2633{
2634 size_t n = 0;
2635 for (size_t i = 0; s[i] != '\0'; i++)
2636 n++;
2637 return n;
2638}
2639
2640static size_t strnlen(const char *s, size_t n)
2641{

Callers 15

strncatFunction · 0.70
strdupFunction · 0.70
fputs_unlockedFunction · 0.70
vsnprintfFunction · 0.70
internal_functionFunction · 0.50
startswithFunction · 0.50
try_dwp_fileFunction · 0.50
scn_dwarf_typeFunction · 0.50
check_sectionFunction · 0.50
read_srclinesFunction · 0.50
mainFunction · 0.50
isTestFunction · 0.50

Calls

no outgoing calls

Tested by 3

mainFunction · 0.40
isTestFunction · 0.40
test_stringFunction · 0.40