libs/gen/src/Args.cxx
// Args method to find the given argument.
// Note - Uses firstArg/nextArg.
// Note - Only checks for the length of the given arg.
Args method to find the given argument.
Note - Uses firstArg/nextArg.
Note - Only checks for the length of the given arg.
Args method to find the given argument . Note - Uses firstArg / nextArg . Note - Only checks for the length of the given arg .
int Args::findArg(const char * arg) {
   if (arg && *arg ) {
      int length = strlen(arg);
      char * myArg = firstArg();
      while (myArg) {
         if (strncmp(myArg, arg, length) == 0)
            return(1);
         myArg = nextArg();
      }
   }
   return(0);
}
int Args :: findArg ( const char * arg ) { if ( arg && * arg ) { int length = strlen ( arg ) ; char * myArg = firstArg ( ) ; while ( myArg ) { if ( strncmp ( myArg , arg , length ) == 0 ) return ( 1 ) ; myArg = nextArg ( ) ; } } return ( 0 ) ; }
Args method to find the given argument.
Args method to find the given argument .