Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void expandBits(uint64_t source, char * bits)
- {
- char c;
- int buffer = 1;
- int count = 1;
- bits[72]='\0';
- for (int i = 0; i < 71; i++){
- c = (char) 1 & source;
- source = source >> 1;
- count++;
- bits[i] = c;
- if (count == 8){
- buffer++;
- count = 1;
- bits[i] = ' ';
- i++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement