MCPcopy Create free account
hub / github.com/F-Stack/f-stack / zmemcmp

Function zmemcmp

freebsd/contrib/zlib/zutil.c:160–171  ·  view source on GitHub ↗
(s1, s2, len)

Source from the content-addressed store, hash-verified

158}
159
160int ZLIB_INTERNAL zmemcmp(s1, s2, len)
161 const Bytef* s1;
162 const Bytef* s2;
163 uInt len;
164{
165 uInt j;
166
167 for (j = 0; j < len; j++) {
168 if (s1[j] != s2[j]) return 2*(s1[j] > s2[j])-1;
169 }
170 return 0;
171}
172
173void ZLIB_INTERNAL zmemzero(dest, len)
174 Bytef* dest;

Callers 1

check_matchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected