engine/EngineCommon.c
/*	Returns the position (1 to argc-1) in the program's argument list
	where the given parameter apears, or 0 if not present
*/
Returns the position (1 to argc-1) in the program's argument list
where the given parameter apears, or 0 if not present
Returns the position ( 1 to argc - 1 ) in the program ' s argument list where the given parameter apears or 0 if not present
int COM_CheckParm (char *parm)
{
	int i;
	for (i=1 ; i<com_argc ; i++)
	{
		if(!com_argv[i])
			continue;               
		if(!strcmp (parm,com_argv[i]))
			return i;
	}
	return 0;
}
int COM_CheckParm ( char * parm ) { int i ; for ( i = 1 ; i < com_argc ; i ++ ) { if ( ! com_argv [ i ] ) continue ; if ( ! strcmp ( parm , com_argv [ i ] ) ) return i ; } return 0 ; }
Returns the position (1 to argc-1) in the program's argument list
where the given parameter apears, or 0 if not present
Returns the position ( 1 to argc - 1 ) in the program ' s argument list where the given parameter apears or 0 if not present
// NEXTSTEP sometimes clears appkit vars.