Make backup dialog modal.
[maemo-rb.git] / firmware / test / i2c / gendata.c
blobdc5989ee66f8ab8ff5c1c7d619619eecdf2edd6e
1 #include <stdio.h>
3 int main(int argc, char *argv[])
5 FILE *f;
6 int i;
7 unsigned char buf[128000];
9 f = fopen("mp.mp3", "r");
11 if(f)
13 if(fread(buf, 1, 128000, f) < 128000)
15 fprintf(stderr, "FAN!\n");
16 exit(1);
19 printf("int mp3datalen = 128000;\n");
20 printf("unsigned char mp3data[128000] =\n{");
21 for(i = 0;i < 128000;i++)
23 if(i % 8 == 0)
25 printf("\n");
27 printf("0x%02x, ", buf[i]);
29 printf("};\n");