Sandro Djuric
/
Test1_SandroDjuric
funktionen
Diff: main.cpp
- Revision:
- 5:0b09788019ab
- Parent:
- 4:25e070866cf0
- Child:
- 6:de6ff5fc4192
--- a/main.cpp Mon Jan 13 17:17:30 2020 +0000 +++ b/main.cpp Mon Jan 13 17:20:00 2020 +0000 @@ -49,4 +49,11 @@ anz++; } return anz; - } \ No newline at end of file + } + +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