1 //
2 // Copyright(C) 1993-1996 Id Software, Inc.
3 // Copyright(C) 2005-2014 Simon Howard
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 // GNU General Public License for more details.
14 //
15 // DESCRIPTION:
16 //  Nil.
17 //
18 
19 
20 #ifndef __M_ARGV__
21 #define __M_ARGV__
22 
23 #include "doomtype.h"
24 
25 //
26 // MISC
27 //
28 extern  int	myargc;
29 extern  char**	myargv;
30 
31 // Returns the position of the given parameter
32 // in the arg list (0 if not found).
33 int M_CheckParm (char* check);
34 
35 // Same as M_CheckParm, but checks that num_args arguments are available
36 // following the specified argument.
37 int M_CheckParmWithArgs(char *check, int num_args);
38 
39 void M_FindResponseFile(void);
40 
41 // Parameter has been specified?
42 
43 boolean M_ParmExists(char *check);
44 
45 // Get name of executable used to run this program:
46 
47 char *M_GetExecutableName(void);
48 
49 #endif
50