initial
[fpgammix.git] / workloads / audio / encodeblob.c
blobb070813046a5a2c66dc99a69d5ca1453e9bf20a6
1 #include <stdio.h>
2 int main(int argc, char **argv)
4 int ch;
5 int i = 0;
6 printf("unsigned char blob[] = {\n\t");
7 while ((ch = getchar()) >= 0)
8 printf("0x%02x,%s", (unsigned char) ch, ++i == 16 ? i = 0, "\n\t" : "");
9 printf("%s};\n", i != 0 ? "\n" : "");
10 return 0;