Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void parse_bitmap(unsigned bitmap) {
- for (int i = 0; i < 8 && bitmap; ++i) {
- if ((bitmap & 1)) {
- printf("Bit %i is set\n", i);
- }
- bitmap >>= 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement