projects
/
debian
/
elilo
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make lintian happy
[debian/elilo]
/
x86_64
/
bin_to_h.c
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
int
5
main(void)
6
{
7
unsigned n = 0;
8
int c;
9
10
printf("UINT8 rmswitch_image[] = {\n");
11
12
while ((c = getchar()) != EOF) {
13
printf("0x%02x,%s",
14
c & 0xFF,
15
(++n & 0x07) ? " " : "\n");
16
}
17
18
if (n & 0x07) {
19
printf("\n");
20
}
21
22
printf(
23
"};\n"
24
"UINTN rmswitch_size = sizeof rmswitch_image;\n");
25
26
return 0;
27
}