Sign in
cos
/
mirrors
/
cros
/
chromiumos
/
third_party
/
coreboot
/
d1436288d3b025af27a8d28ba94b589940ead504
/
.
/
util
/
mkelfImage
/
util
/
bin-to-hex.c
blob: af87e3ac0cdda0a5589ff9bd640d25b21db5e75d [
file
] [
log
] [
blame
]
#include
<stdio.h>
int
main
(
int
argc
,
char
**
argv
)
{
int
c
;
int
i
;
i
=
0
;
while
((
c
=
getchar
())
!=
EOF
)
{
if
((
i
%
16
)
!=
0
)
{
putchar
(
' '
);
}
printf
(
"0x%02x,"
,
c
);
i
++;
if
((
i
%
16
)
==
0
)
{
putchar
(
'\n'
);
}
}
putchar
(
'\n'
);
return
0
;
}