mgxapp/lib/tools.c
/*
	Ensure that there is a 'next' argument. Passing the exit code
	(ec) allows for testing to drive this with a "good" exit if
	it traps the error state.
*/
Ensure that there is a 'next' argument. Passing the exit code
(ec) allows for testing to drive this with a "good" exit if
it traps the error state.
Ensure that there is a ' next ' argument . Passing the exit code ( ec ) allows for testing to drive this with a " good " exit if it traps the error state .
extern void ensure_nxt_arg( int max, int idx, int ec ) {
	if( idx  >= max ) {
		fprintf( stderr, "<MUNCHER> not enough parameters on the command line\n" );
		exit( ec );
	}
}
extern void ensure_nxt_arg ( int max , int idx , int ec ) { if ( idx >= max ) { fprintf ( stderr , " \n " ) ; exit ( ec ) ; } }
Ensure that there is a 'next' argument.
Ensure that there is a ' next ' argument .