Initial commit of files

This commit is contained in:
2021-01-22 10:16:20 -05:00
parent 32d165ec8f
commit ed92211680
534 changed files with 68563 additions and 19 deletions

22
utils/bin2c/bin2c.c Normal file
View File

@ -0,0 +1,22 @@
#include <stdio.h>
int main( int argc, char *argv[] )
{
int c;
int n = 0;
printf( "\t" );
while ( (c = getchar()) !=EOF )
{
if ( n )
{
printf( ", " );
if ( n % 8 == 0 )
printf( "\n\t" );
}
printf( "0x%02x", c );
n++;
}
printf( "\n" );
}