home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17558 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.6 KB  |  39 lines

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