/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE. COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. */ /* * $Source: /cvs/cvsroot/d2x/misc/args.c,v $ * $Revision: 1.1.1.1 $ * $Author: bradleyb $ * $Date: 2001-01-19 03:30:14 $ * * Functions for accessing arguments. * * $Log: not supported by cvs2svn $ * Revision 1.3 1999/08/05 22:53:41 sekmu * * D3D patch(es) from ADB * * Revision 1.2 1999/06/14 23:44:11 donut * Orulz' svgalib/ggi/noerror patches. * * Revision 1.1.1.1 1999/06/14 22:05:15 donut * Import of d1x 1.37 source. * * Revision 2.0 1995/02/27 11:31:22 john * New version 2.0, which has no anonymous unions, builds with * Watcom 10.0, and doesn't require parsing BITMAPS.TBL. * * Revision 1.9 1994/11/29 01:07:57 john * Took out some unused vars. * * Revision 1.8 1994/11/29 01:04:30 john * Took out descent.ini stuff. * * Revision 1.7 1994/09/20 19:29:15 matt * Made args require exact (not substring), though still case insensitive. * * Revision 1.6 1994/07/25 12:33:11 john * Network "pinging" in. * * Revision 1.5 1994/06/17 18:07:50 matt * Took out printf * * Revision 1.4 1994/05/11 19:45:33 john * *** empty log message *** * * Revision 1.3 1994/05/11 18:42:11 john * Added Descent.ini config file. * * Revision 1.2 1994/05/09 17:03:30 john * Split command line parameters into arg.c and arg.h. * Also added /dma, /port, /irq to digi.c * * Revision 1.1 1994/05/09 16:49:11 john * Initial revision * * */ #ifdef RCS static char rcsid[] = "$Id: args.c,v 1.1.1.1 2001-01-19 03:30:14 bradleyb Exp $"; #endif #include #include #include #include #include "u_mem.h" #include "strio.h" //added 6/15/99 - Owen Evans #include "strutil.h" //end added - OE int Num_args=0; char * Args[100]; int args_find( char * s ) { int i; for (i=0; i