MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / memchr

Function memchr

c/stringzilla.c:562–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560void *__cdecl memchr(void const *s, int c_wide, size_t n) {
561#else
562SZ_DYNAMIC void *memchr(void const *s, int c_wide, size_t n) {
563#endif
564 sz_u8_t c = (sz_u8_t)c_wide;
565 return (void *)sz_find_byte(s, n, (sz_cptr_t)&c);
566}
567
568#if defined(_MSC_VER)
569#if defined(_WIN64)

Callers 1

operator()Method · 0.85

Calls 1

sz_find_byteFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…