FreeBSD/sbin/geom/core/geom.c
/*
 * Find given option in options available for given command.
 */
Find given option in options available for given command.
Find given option in options available for given command .
static struct g_option *
find_option(struct g_command *cmd, char ch)
{
	struct g_option *opt;
	unsigned i;
	for (i = 0; ; i++) {
		opt = &cmd->gc_options[i];
		if (opt->go_name == NULL)
			return (NULL);
		if (opt->go_char == ch)
			return (opt);
	}
	return (NULL);
}
static struct g_option * find_option ( struct g_command * cmd , char ch ) { struct g_option * opt ; unsigned i ; for ( i = 0 ; ; i ++ ) { opt = & cmd -> gc_options [ i ] ; if ( opt -> go_name == NULL ) return ( NULL ) ; if ( opt -> go_char == ch ) return ( opt ) ; } return ( NULL ) ; }
Find given option in options available for given command.
Find given option in options available for given command .
/* NOTREACHED */