MCPcopy Create free account
hub / github.com/MariaDB/server / strnlen

Function strnlen

strings/strnlen.c:41–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39#ifndef HAVE_STRNLEN
40
41size_t strnlen(register const char *s, register size_t maxlen)
42{
43 const char *end= (const char *)memchr(s, '\0', maxlen);
44 return end ? (size_t) (end - s) : maxlen;
45}
46
47#endif

Callers 4

process_str_argFunction · 0.85
parse_server_packetFunction · 0.85
SetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected