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

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!navajo!shulick
  3. From: shulick@navajo.ucs.indiana.edu (Sam Hulick)
  4. Subject: More on ReadArgs() -- figured out some..
  5. Message-ID: <BzFLy3.r9@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: Fri, 18 Dec 1992 01:39:38 GMT
  12. Lines: 25
  13.  
  14.  
  15. Ok, I've figured out a little bit.  I have this:
  16.  
  17.   LONG arr[500];  /* plenty of space */
  18.  
  19.   memset(arr, '\0', sizeof(arr));
  20.   rd = ReadArgs("I=Ignore/S,L=Learn/S,Filelist/F/A", arr, NULL);
  21.  
  22.   So if arr[0] == -1, that means the user said 'i' or 'ignore'
  23. And if arr[1] == -1, then Learn is chosen.  And for arr[2], I get the
  24. files picked.  Now this is a MAJOR problem if the user selects 200
  25. files.  How in the world do I parse a string like: "file1 file2 ...
  26. file200".  What I originally wanted was:
  27.  
  28.   rd = ReadArgs("Filelist/M/A,I=Ignore/S,L=Learn/S", arr, NULL);
  29.  
  30. except that when I parsed out the filelist, it wasn't a string.. just
  31. garbage.  Like I said, I wish ReadArgs() was documented in
  32. RMK:Libraries.  Any help would be GREATLY appreciated.. 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.