You are on page 1of 1

int CheckInNetwork(unsigned int our_ip, unsigned int our_subnetmask, unsigned in

t other_ip)
{
if((our_ip>>12)^(other_ip>>12)==0)
return 1;
else if((our_ip>>8)^(other_ip>>8)==0)
return -1;
else return 0;
}

You might also like