home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / atari / st / tech / 4208 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  1.3 KB

  1. Path: sparky!uunet!news.univie.ac.at!blekul11!frmop11!dearn!dmswwu1a!reschke
  2. Organisation: Westfaelische Wilhelms-Universitaet, Muenster, Germany
  3. Date: Friday, 31 Jul 1992 11:20:32 MES
  4. From: Julian F. Reschke <RESCHKE@DMSWWU1A.UNI-MUENSTER.DE>
  5. Message-ID: <92213.112032RESCHKE@DMSWWU1A.UNI-MUENSTER.DE>
  6. Newsgroups: comp.sys.atari.st.tech
  7. Subject: Re: Problems with ARGV
  8. References: <92211.111512RESCHKE@DMSWWU1A.UNI-MUENSTER.DE>
  9.  <1992Jul29.130755.27902@mks.com> <1992Jul29.221225.24054@mnemosyne.cs.du.edu>
  10.  <1992Jul30.171118.2682@its.bt.co.uk>
  11. Lines: 22
  12.  
  13. In article <1992Jul30.171118.2682@its.bt.co.uk>, jvt@its.bt.co.uk (John Trickey)
  14. says:
  15. >Am I missing something? It seems all too easy for me. Why not pass ARGC ?
  16. >
  17. >so in the above example:
  18. >
  19. >ARGC="3"
  20. >
  21. >(assuming the cli does not interpret the *.c) and
  22. >
  23. >ARGV="grep\0\0*.c\0"
  24. >
  25. >(yes there are 2 \0 's on the end --- remember a str is terminated by \0)
  26.  
  27. Yes, you ARE missinng something. On Pexec, GEMDOS copied the environment
  28. to a newly allocated buffer. And guess how many bytes are copied? Upto
  29. the first \0\0 :-(((
  30.  
  31. ___________________________ cut here _____________________________________
  32. JULIAN F. RESCHKE, HENSENSTR. 142, D-W4400 MUENSTER
  33. EMAIL: JULIAN@MATH.UNI-MUENSTER.DE, JR@MS.MAUS.DE
  34. ____________________ correct me if I'm wrong _____________________________
  35.