From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b8af4c15521994f7 X-Google-Attributes: gid1164f8,public From: Adrian Birkett Subject: Re: Specifying parameters to a C program? Date: 1999/08/19 Message-ID: <37BBAA87.B7674AC@csc.com>#1/1 X-Deja-AN: 514583755 Content-Transfer-Encoding: 7bit References: <7pf1gt$g56$1@news.wrc.xerox.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: support@csc.com X-Trace: lore.csc.com 935045883 26819 20.9.167.113 (19 Aug 1999 06:58:03 GMT) Organization: Computer Sciences Corporation Mime-Version: 1.0 NNTP-Posting-Date: 19 Aug 1999 06:58:03 GMT Newsgroups: comp.sys.dec Just to add to the other replies; I am not a C programmer, but in macro, I use LIB$GET_FOREIGN in conjunction with defining foreign commands to run programs to read the remainder of the command line. I use this when parameters are required because if it doesn't find anything on the command line, it will prompt for it. Ade -- My own opinion -- Kevin Lynn wrote: > I'm having trouble guessing how to specify command line parameters to a C > program under VMS. > > What I'd like to do is something like: > > $run myprog -i param1 -a param2 > > so that -i, param1, -a, and param2 are passed to main() in the argv[]. > > Anyone know how to do this under VMS?