OSDN Git Service
(root)
/
kozos-expbrd
/
kozos_expbrd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Moved some unused codes.
[kozos-expbrd/kozos_expbrd.git]
/
misc
/
hwtest
/
08
/
bootload
/
m2a.c
1
/* mp3 to array. Junk code! */
2
#include <stdio.h>
3
int main(void) {
4
FILE *f = fopen("splash.mp3", "rb");
5
int c = 0;
6
while (1) {
7
int b = fgetc(f);
8
if (b == EOF) {
9
break;
10
}
11
printf("0x%02X,",b);
12
if (((c+1) % 8) == 0) {
13
printf("\n");
14
}
15
c++;
16
}
17
fclose(f);
18
printf("\n");
19
return 0;
20
}