FreeBSD/contrib/openpam/bin/pamtest/pamtest.c
/*
 * Handle an option that takes a string argument and can be used only once
 */
Handle an option that takes a string argument and can be used only once
Handle an option that takes a string argument and can be used only once
static void
opt_str_once(int opt, const char **p, const char *arg)
{
	if (*p != NULL) {
		fprintf(stderr, "The -%c option can only be used once\n", opt);
		usage();
	}
	*p = arg;
}
static void opt_str_once ( int opt , const char * * p , const char * arg ) { if ( * p != NULL ) { fprintf ( stderr , " \n " , opt ) ; usage ( ) ; } * p = arg ; }
Handle an option that takes a string argument and can be used only once
Handle an option that takes a string argument and can be used only once