level/cmdlib.c
/*
=================
CheckParm

Checks for the given parameter in the program's command line arguments
Returns the argument number (1 to argc-1) or 0 if not present
=================
*/
CheckParm
Checks for the given parameter in the program's command line arguments
Returns the argument number (1 to argc-1) or 0 if not present
CheckParm Checks for the given parameter in the program ' s command line arguments Returns the argument number ( 1 to argc - 1 ) or 0 if not present
int CheckParm (char *check)
{
  int             i;
  for (i = 1;i<myargc;i++)
	{
	  if ( !Q_strcasecmp(check, myargv[i]) )
	return i;
	}
  return 0;
}
int CheckParm ( char * check ) { int i ; for ( i = 1 ; i < myargc ; i ++ ) { if ( ! Q_strcasecmp ( check , myargv [ i ] ) ) return i ; } return 0 ; }
CheckParm
Checks for the given parameter in the program's command line arguments
Returns the argument number (1 to argc-1) or 0 if not present
CheckParm Checks for the given parameter in the program ' s command line arguments Returns the argument number ( 1 to argc - 1 ) or 0 if not present