Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
b2hex.cpp File Reference
#include <stdio.h>
Include dependency graph for b2hex.cpp:

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( void )

Definition at line 3 of file b2hex.cpp.

4{
5 puts("enum {");
6 for (int i = 0; i < 256; i++) {
7 printf(" B");
8 for (int j = 0; j < 8; j++) {
9 putchar(i & (1 << (7 - j)) ? '1' : '0');
10 }
11 printf("= %d", i);
12 if (i < 255) putchar(',');
13 putchar('\n');
14 }
15 puts("};");
16 return 0;
17}
LOGGING_API void printf(Category category, const char *format,...)
Definition Logging.cpp:30
uint16_t j