MCPcopy Create free account
hub / github.com/davisking/dlib / zmemcmp

Function zmemcmp

dlib/external/zlib/zutil.c:162–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162int ZLIB_INTERNAL zmemcmp(const void FAR *s1, const void FAR *s2, z_size_t n) {
163 const uchf *p = s1, *q = s2;
164 while (n) {
165 if (*p++ != *q++)
166 return (int)p[-1] - (int)q[-1];
167 n--;
168 }
169 return 0;
170}
171
172void ZLIB_INTERNAL zmemzero(void FAR *b, z_size_t len) {
173 uchf *p = b;

Callers 1

check_matchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected