home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17535 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.7 KB

  1. Path: sparky!uunet!olivea!spool.mu.edu!agate!stanford.edu!rock!concert!sas!mozart.unx.sas.com!jamie
  2. From: jamie@cdevil.unx.sas.com (James Cooper)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: ReadArgs(): One last problem!!
  5. Message-ID: <BzGq5u.3z5@unx.sas.com>
  6. Date: 18 Dec 92 16:08:18 GMT
  7. References: <BzFMtA.1vt@usenet.ucs.indiana.edu>
  8. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  9. Organization: SAS Institute Inc.
  10. Lines: 33
  11. Originator: jamie@cdevil.unx.sas.com
  12. Nntp-Posting-Host: cdevil.unx.sas.com
  13.  
  14.  
  15. In article <BzFMtA.1vt@usenet.ucs.indiana.edu>, shulick@navajo.ucs.indiana.edu (Sam Hulick) writes:
  16. >
  17. >Sorry for the all the posts, but our sysadmin hasn't gotten around to
  18. >fixing trn.  (I can't cancel my articles)
  19. >
  20. >Anyway, if I do this:
  21. >
  22. >  rd = ReadArgs("Files/M/A .......
  23. >
  24. >The 'files' are stored in rd->RDA_Buffer.  But how do I parse those out?
  25. >Should I juse use some mathematical method like:
  26. >
  27. >Well, screw it.. I was going to try to write a program to separate the
  28. >files.  It would've worked, excep this rd->RDA_BufSiz seems to be
  29. >limited to 128.  See, what if the user does 'prog fonts:*.font'
  30. >(assuming they're using Csh5.19).  I want ReadArgs() to handle up to 300
  31. >filenames.  The RDA_BufSiz is limiting this, though.. or so it seems.
  32. >Anyway, if anyone could help out, thanks.
  33.  
  34. Do you have SAS/C 6.0?  If so, look in the sc:examples/nostartup/Example_3 dir
  35. at the cat.c file.  It handles the "/M" switch correctly.
  36.  
  37. If you don't have 6.0, I could probably clip the ReadArgs code and post or
  38. EMail it...
  39.  
  40. -- 
  41. ---------------
  42. Jim Cooper
  43. (jamie@unx.sas.com)                             bix: jcooper
  44.  
  45. Any opinions expressed herein are mine (Mine, all mine!  Ha, ha, ha!),
  46. and not necessarily those of my employer.
  47.