Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Meituan-Dianping/SQLAdvisor
/ strnlen
Function
strnlen
strings/strnlen.c:29–33 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
27
#ifndef HAVE_STRNLEN
28
29
size_t strnlen(register const char *s, register size_t maxlen)
30
{
31
const char *end= (const char *)memchr(s,
'\0'
, maxlen);
32
return end ? (size_t) (end - s) : maxlen;
33
}
34
35
#endif
Callers
1
process_str_arg
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected