engine/EngineConsoleCommand.c
/*	Returns the position (1 to argc-1) in the command's argument list
	where the given parameter apears, or 0 if not present
*/
Returns the position (1 to argc-1) in the command's argument list
where the given parameter apears, or 0 if not present
Returns the position ( 1 to argc - 1 ) in the command ' s argument list where the given parameter apears or 0 if not present
int Cmd_CheckParm (char *parm)
{
	int i;
	if (!parm)
		Sys_Error ("Cmd_CheckParm: NULL");
	for (i = 1; i < Cmd_Argc (); i++)
		if(!Q_strcasecmp (parm, Cmd_Argv (i)))
			return i;
	return 0;
}
int Cmd_CheckParm ( char * parm ) { int i ; if ( ! parm ) Sys_Error ( " " ) ; for ( i = 1 ; i < Cmd_Argc ( ) ; i ++ ) if ( ! Q_strcasecmp ( parm , Cmd_Argv ( i ) ) ) return i ; return 0 ; }
Returns the position (1 to argc-1) in the command's argument list
where the given parameter apears, or 0 if not present
Returns the position ( 1 to argc - 1 ) in the command ' s argument list where the given parameter apears or 0 if not present