home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!spool.mu.edu!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!navajo!shulick
- From: shulick@navajo.ucs.indiana.edu (Sam Hulick)
- Subject: Sigh.. OKAY. ReadArgs() is buggy?
- Message-ID: <BzHto9.9pG@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 06:21:45 GMT
- Lines: 28
-
-
- (*&%(*@&(*&%!! I've about had it with this fucking routine! (If only I
- had the money to buy a book...)
-
- #define TEMPLATE "Files/M/A,I=Ignore/S,L=Learn/S,V=Verbose/S,Action=ToDo/K"
-
- ...
- ...
-
- LONG arr[5];
- struct RDArgs *rd;
-
- rd = ReadArgs(TEMPLATE, arr, NULL); /* Let's assume success */
-
- Ok, let's say the command line was: "program blech.pic"
- For some WEIRD reason, arr[1] == -1, arr[2] == 0 (this is ok), and
- arr[3] == 32791839!! What the HELL? I checked someone else's source
- code, and indeed, if it's -1, the switch (/S) was picked, and if not, 0.
- What the hell is a 32791839 doing in arr[3]? Arr[3] corresponds to
- "V=Verbose/S". Well, there's not much I can say about this. I have no
- idea what would cause this. Again, please follow-up here, do NOT e-mail
- me. 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
-