MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / strnlen

Function strnlen

components/libc/compilers/common/cstring.c:114–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114size_t strnlen(const char *s, size_t maxlen)
115{
116 const char *sc;
117 for (sc = s; maxlen != 0 && *sc != '\0'; maxlen--, ++sc);
118 return sc - s;
119}
120
121char *strchrnul(const char* s, int c)
122{

Callers 12

fdt_stringlist_countFunction · 0.85
fdt_stringlist_searchFunction · 0.85
fdt_stringlist_getFunction · 0.85
dtb_node_read_stringFunction · 0.85
fdt_stringlist_countFunction · 0.85
fdt_stringlist_searchFunction · 0.85
fdt_stringlist_getFunction · 0.85
strndupFunction · 0.85
snmp_parse_inbound_frameFunction · 0.85
ata_id_c_stringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected