home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!usc!sdd.hp.com!ux1.cso.uiuc.edu!usenet.ucs.indiana.edu!navajo!shulick
- From: shulick@navajo.ucs.indiana.edu (Sam Hulick)
- Subject: THANK YOU!! (ReadArgs()).. but I'm handling something wrong
- Message-ID: <BzHsLC.8rJ@usenet.ucs.indiana.edu>
- Originator: shulick@navajo
- Sender: news@usenet.ucs.indiana.edu (USENET News System)
- Nntp-Posting-Host: navajo.ucs.indiana.edu
- Reply-To: shulick@navajo.ucs.indiana.edu
- Organization: Vallen Software
- Date: Sat, 19 Dec 1992 05:58:24 GMT
- Lines: 25
-
-
- Thanks to EVERYONE who replied & helped out. :) After a couple replies,
- I got things working, so most of the mail I got about ReadArgs() I
- skimmed thru quickly & deleted.
-
- Well, the /M/A works and everything. Umm, something stopped working,
- though. :) My template has gotten big, and I have these switches..
-
- ".....,B=Blah/S,F=Foobar/S,....."
-
- Well, I used to check them like this:
-
- blah_mode = arr[1] == -1; /* assume 'B=Blah/S' was the second in */
- /* the template */
-
- Well, it used to work, but now I have lots of things in my template, and
- even though I DON'T specify a switch, it gets set -1 anyway! So what's
- the REAL way to check if a switch is specified? Please POST, do NOT
- reply via e-mail.. I get way too many responses to read. :) Thanks.
-
- --
- // Amiga 3000 ___ \ Sam Hulick: shulick@indiana.edu (NeXTmail OK!)
- // 68030 25 MHz /__/\ \ My opinions wear combat boots. Or whatever.
- \\// OS 2.04 \__\/ / "Walk! Not bloody likely. I am going in a
- \/ / taxi." --George Bernard Shaw
-