Sync up dump_list dump_sym and README

This commit is contained in:
Michaelangel007 2018-04-19 10:30:26 -07:00
parent 058d1fabd6
commit 20af4ce3c7
3 changed files with 10 additions and 10 deletions

View File

@ -424,12 +424,10 @@ Here's a C program, [dump_list.c](dump_list.c), to dump the fragment:
const char *name = "gumball.fragment.1.1800";
if( nArg > 1 )
{
name = aArg[1];
printf( "Filename: %s\n", name );
}
FILE *in = fopen( name, "rb" );
printf( "Filename: %s\n", name );
if( in )
{
@ -668,10 +666,12 @@ We can modify our `dump_list` converting it to
int main( const int nArg, const char *aArg[] )
{
const char *name = "gumball.fragment.2.849a";
FILE *in = fopen( name, "rb" );
if( nArg > 1 )
name = aArg[1];
name = aArg[1];
FILE *in = fopen( name, "rb" );
printf( "Filename: %s\n", name );
if( in )
{

View File

@ -26,12 +26,10 @@
const char *name = "gumball.fragment.1.1800";
if( nArg > 1 )
{
name = aArg[1];
printf( "Filename: %s\n", name );
}
FILE *in = fopen( name, "rb" );
printf( "Filename: %s\n", name );
if( in )
{

View File

@ -24,10 +24,12 @@
int main( const int nArg, const char *aArg[] )
{
const char *name = "gumball.fragment.2.849a";
FILE *in = fopen( name, "rb" );
if( nArg > 1 )
name = aArg[1];
name = aArg[1];
FILE *in = fopen( name, "rb" );
printf( "Filename: %s\n", name );
if( in )
{