#include <stdio.h>
#include <stdlib.h>
void BinFormat(char character, char *text) {
text[8] = '\0';
for (int i = 7; i >= 0; i--) text[i] = ((character >> i) & 1) + '0';
}
int main(void) {
BinFormat('A', text);
BinFormat('B', text);
BinFormat('C', text);
}
//https://pt.stackoverflow.com/q/286742/101
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCnZvaWQgQmluRm9ybWF0KGNoYXIgY2hhcmFjdGVyLCBjaGFyICp0ZXh0KSB7Cgl0ZXh0WzhdID0gJ1wwJzsKICAgIGZvciAoaW50IGkgPSA3OyBpID49IDA7IGktLSkgdGV4dFtpXSA9ICgoY2hhcmFjdGVyID4+IGkpICYgMSkgKyAnMCc7Cn0KCmludCBtYWluKHZvaWQpIHsKCWNoYXIgKnRleHQgPSBtYWxsb2MoOSk7CiAgICBCaW5Gb3JtYXQoJ0EnLCB0ZXh0KTsKICAgIHByaW50ZigiJXNcbiIsIHRleHQpOwogICAgQmluRm9ybWF0KCdCJywgdGV4dCk7CiAgICBwcmludGYoIiVzXG4iLCB0ZXh0KTsKICAgIEJpbkZvcm1hdCgnQycsIHRleHQpOwogICAgcHJpbnRmKCIlc1xuIiwgdGV4dCk7Cn0KCi8vaHR0cHM6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzI4Njc0Mi8xMDE=