lib/test/AMRTools/testPeriodicFillPatch.cpp
void
parseTestOptions( int argc ,char* argv[] )
{
  for ( int i = 1 ; i < argc ; ++i )
    {
      if ( argv[i][0] == '-' ) //if it is an option
        {
          // compare 3 chars to differentiate -x from -xx
          if ( strncmp( argv[i] ,"-v" ,3 ) == 0 )
            {
              verbose = true ;
              // argv[i] = "" ;
            }
          else
            {
              break ;
            }
        }
    }
  return ;
}
///
// Parse the standard test options (-v -q) out of the command line.
// Stop parsing when a non-option argument is found.
///
Parse the standard test options (-v -q) out of the command line.
Stop parsing when a non-option argument is found.
Parse the standard test options ( - v - q ) out of the command line . Stop parsing when a non - option argument is found .
void
parseTestOptions( int argc ,char* argv[] )
{
  for ( int i = 1 ; i < argc ; ++i )
    {
      if ( argv[i][0] == '-' ) 
        {
          if ( strncmp( argv[i] ,"-v" ,3 ) == 0 )
            {
              verbose = true ;
            }
          else
            {
              break ;
            }
        }
    }
  return ;
}
void parseTestOptions ( int argc , char * argv [ ] ) { for ( int i = 1 ; i < argc ; ++ i ) { if ( argv [ i ] [ 0 ] == ' ' ) { if ( strncmp ( argv [ i ] , " " , 3 ) == 0 ) { verbose = true ; } else { break ; } } } return ; }
Parse the standard test options (-v -q) out of the command line.
Parse the standard test options ( - v - q ) out of the command line .
//if it is an option // compare 3 chars to differentiate -x from -xx // argv[i] = "" ;