XenevaOS
Loading...
Searching...
No Matches
m_argv.h
Go to the documentation of this file.
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//
28extern int myargc;
29extern char** myargv;
30
31// Returns the position of the given parameter
32// in the arg list (0 if not found).
33int M_CheckParm (char* check);
34
35// Same as M_CheckParm, but checks that num_args arguments are available
36// following the specified argument.
37int M_CheckParmWithArgs(char *check, int num_args);
38
39void M_FindResponseFile(void);
40
41// Parameter has been specified?
42
43boolean M_ParmExists(char *check);
44
45// Get name of executable used to run this program:
46
47char *M_GetExecutableName(void);
48
49#endif
int M_CheckParm(char *check)
Definition m_argv.c:68
char ** myargv
Definition m_argv.c:30
void M_FindResponseFile(void)
Definition m_argv.c:235
int myargc
Definition m_argv.c:29
char * M_GetExecutableName(void)
Definition m_argv.c:250
int M_CheckParmWithArgs(char *check, int num_args)
Definition m_argv.c:43
boolean M_ParmExists(char *check)
Definition m_argv.c:63