tag | line | file | source code |
outf | 70 | drivers/sound/hex2hex.h | FILE *inf, *outf; |
outf | 81 | drivers/sound/hex2hex.h | if ((outf=fopen(target, "w"))==NULL) |
outf | 92 | drivers/sound/hex2hex.h | fclose(outf); |
outf | 97 | drivers/sound/hex2hex.h | fprintf(outf, "/*\n *\t Computer generated file. Do not edit.\n */\n"); |
outf | 98 | drivers/sound/hex2hex.h | fprintf(outf, "static int %s_len = %d;\n", varline, l); |
outf | 99 | drivers/sound/hex2hex.h | fprintf(outf, "static unsigned char %s[] = {\n", varline); |
outf | 103 | drivers/sound/hex2hex.h | if (i) fprintf(outf, ","); |
outf | 104 | drivers/sound/hex2hex.h | if (i && !(i % 16)) fprintf(outf, "\n"); |
outf | 105 | drivers/sound/hex2hex.h | fprintf(outf, "0x%02x", buf[i]); |
outf | 108 | drivers/sound/hex2hex.h | fprintf(outf, "\n};\n\n"); |
outf | 110 | drivers/sound/hex2hex.h | fclose(outf); |