Hello
Not sure I understand what you are trying to do here.
Are you programming in ANSI C and are you looking for a way to encode binary constants in ANSI C?
ANSI C standard does not define any notation for binary constants.
Only thing you can use is hexadecimal constants (0x.....). Converting binary value to Hexadecimal is quite easy

.
I hope this helps.
CrasyCat