MCPcopy Index your code
hub / github.com/RsyncProject/rsync / match_binary

Function match_binary

access.c:73–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73static int match_binary(const char *b1, const char *b2, const char *mask, int addrlen)
74{
75 int i;
76
77 for (i = 0; i < addrlen; i++) {
78 if ((b1[i] ^ b2[i]) & mask[i])
79 return 0;
80 }
81
82 return 1;
83}
84
85static void make_mask(char *mask, int plen, int addrlen)
86{

Callers 1

match_addressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected