Bit set implemented in C