typedef struct {char a[9];} t; t b(uint8_t x) { t s; for (int i=8; i>0; x>>=1) s.a[--i]=48+(x&1); s.a[8]=0; return s; }
-
-
Btw, this only works because the LSB bit pattern of (dec) 10, 100, 1000, ... is 0, 00, 000, ...
-
code as text file: http://svn.clifford.at/handicraft/2016/bindec/bindec.c …
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.