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

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!spool.mu.edu!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!navajo!shulick
  3. From: shulick@navajo.ucs.indiana.edu (Sam Hulick)
  4. Subject: Sigh.. OKAY.  ReadArgs() is buggy?
  5. Message-ID: <BzHto9.9pG@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 06:21:45 GMT
  12. Lines: 28
  13.  
  14.  
  15. (*&%(*@&(*&%!!  I've about had it with this fucking routine!  (If only I
  16. had the money to buy a book...)
  17.  
  18. #define TEMPLATE "Files/M/A,I=Ignore/S,L=Learn/S,V=Verbose/S,Action=ToDo/K"
  19.  
  20. ...
  21. ...
  22.  
  23. LONG arr[5];
  24. struct RDArgs *rd;
  25.  
  26.     rd = ReadArgs(TEMPLATE, arr, NULL);  /* Let's assume success */
  27.  
  28. Ok, let's say the command line was:  "program blech.pic"
  29. For some WEIRD reason, arr[1] == -1, arr[2] == 0 (this is ok), and
  30. arr[3] == 32791839!!  What the HELL?  I checked someone else's source
  31. code, and indeed, if it's -1, the switch (/S) was picked, and if not, 0.
  32. What the hell is a 32791839 doing in arr[3]?  Arr[3] corresponds to
  33. "V=Verbose/S".  Well, there's not much I can say about this.  I have no
  34. idea what would cause this.  Again, please follow-up here, do NOT e-mail
  35. me.  Thanks.
  36.  
  37. -- 
  38.     // Amiga 3000   ___ \ Sam Hulick: shulick@indiana.edu (NeXTmail OK!)
  39.    // 68030 25 MHz /__/\ \ My opinions wear combat boots.  Or whatever.
  40. \\// OS 2.04       \__\/ / "Walk!  Not bloody likely.  I am going in a
  41.  \/                     / taxi."  --George Bernard Shaw
  42.