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