]>
git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - sound/oss/bin2hex.c
5 int main( int argc
, const char * argv
[] )
12 if(argv
[1] && strcmp(argv
[1],"-i")==0)
21 fprintf(stderr
, "bin2hex: [-i] firmware\n");
26 printf( "/* automatically generated by bin2hex */\n" );
27 printf( "static unsigned char %s [] %s =\n{\n", varname
, id
?"__initdata":"");
29 while ( ( c
= getchar( ) ) != EOF
)
31 if ( i
!= 0 && i
% 10 == 0 )
33 printf( "0x%02lx,", c
& 0xFFl
);
37 printf( "};\nstatic int %sLen = %d;\n", varname
, i
);