Using bitmaks in C