src/csm/sm/lib/options/options.c
struct option * options_find(struct option*ops, const char * name) {
	int j;
	for(j=0;options_valid(ops+j);j++) 
		if(!strcmp(name,ops[j].name)) 
		return ops+j;
	
	return 0;
}
/** Finds an option in the array. Returns 0 if not found. */
Finds an option in the array. Returns 0 if not found.
Finds an option in the array . Returns 0 if not found .
struct option * options_find(struct option*ops, const char * name) {
	int j;
	for(j=0;options_valid(ops+j);j++) 
		if(!strcmp(name,ops[j].name)) 
		return ops+j;
	return 0;
}
struct option * options_find ( struct option * ops , const char * name ) { int j ; for ( j = 0 ; options_valid ( ops + j ) ; j ++ ) if ( ! strcmp ( name , ops [ j ] . name ) ) return ops + j ; return 0 ; }
Finds an option in the array.
Finds an option in the array .