mrg_ui/src/mtkargs.cxx
//============================================================================
// Return the index int the specs array, representing the given tag.
// Returns -1 if the tag is not a valid spec.
//
Return the index int the specs array, representing the given tag.
Returns -1 if the tag is not a valid spec.
Return the index int the specs array representing the given tag . Returns - 1 if the tag is not a valid spec .
int MtkArgs::findTag(char *tag) {
    for (int i = 0; i < num_specs; i += 1) {
	if (strcmp(spec[i].tag, tag) == 0) {
	    return i;
        }
    }
    return -1;
}
int MtkArgs :: findTag ( char * tag ) { for ( int i = 0 ; i < num_specs ; i += 1 ) { if ( strcmp ( spec [ i ] . tag , tag ) == 0 ) { return i ; } } return -1 ; }
Return the index int the specs array, representing the given tag.
Return the index int the specs array representing the given tag .