#include #include uchar classmask[4][4] = { 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0x00, }; void maskip(uchar *a, uchar *m, uchar *n) { int i; for(i = 0; i < 4; i++) n[i] = a[i] & m[i]; }