Riad_ Bajraktarevic
/
Bajraktarevic_13_01_20
main
Diff: main.cpp
- Revision:
- 3:d9c6df85ff68
- Parent:
- 2:4eacbe2fa323
- Child:
- 4:6faa92e1841e
diff -r 4eacbe2fa323 -r d9c6df85ff68 main.cpp --- a/main.cpp Mon Jan 13 17:33:31 2020 +0000 +++ b/main.cpp Mon Jan 13 17:34:00 2020 +0000 @@ -55,4 +55,11 @@ anz++; } return anz; +} + +void printb(uint8_t x) +{ + for(int i=sizeof (x) << 3; i; i--) + putchar('0' + ((x>>(i-1))&1)); + printf("\n"); } \ No newline at end of file