MCPcopy Create free account
hub / github.com/eggert/tz / strnlen

Function strnlen

private.h:224–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222#include <string.h>
223#if defined HAVE_STRNLEN && !HAVE_STRNLEN
224static size_t
225strnlen (char const *s, size_t maxlen)
226{
227 size_t i;
228 for (i = 0; i < maxlen && s[i]; i++)
229 continue;
230 return i;
231}
232#endif
233
234#if !PORT_TO_C89

Callers 3

scrub_abbrsFunction · 0.85
tzloadbodyFunction · 0.85
tzset_unlockedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected