Oops.
[AROS-Contrib.git] / Games / Doom / m_argv.c
blob1b8501e2eb9a6064dcb96b29e60bc734ca44480c
1 // Emacs style mode select -*- C++ -*-
2 //-----------------------------------------------------------------------------
3 //
4 // $Id$
5 //
6 // Copyright (C) 1993-1996 by id Software, Inc.
7 //
8 // This source is available for distribution and/or modification
9 // only under the terms of the DOOM Source Code License as
10 // published by id Software. All rights reserved.
12 // The source is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
15 // for more details.
17 // $Log$
18 // Revision 1.1 2000/02/29 18:21:04 stegerg
19 // Doom port based on ADoomPPC. Read README.AROS!
22 // DESCRIPTION:
24 //-----------------------------------------------------------------------------
26 static const char
27 rcsid[] = "$Id$";
30 #include <string.h>
32 #include "m_argv.h"
34 int myargc;
35 char** myargv;
40 // M_CheckParm
41 // Checks for the given parameter
42 // in the program's command line arguments.
43 // Returns the argument number (1 to argc-1)
44 // or 0 if not present
45 int M_CheckParm (char *check)
47 int i;
49 for (i = 1;i<myargc;i++)
51 if ( !strcasecmp(check, myargv[i]) )
52 return i;
55 return 0;