Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Adrian Birkett <abirkett@csc.com>
Subject: Re: Specifying parameters to a C program?
Date: 1999/08/19	[thread overview]
Message-ID: <37BBAA87.B7674AC@csc.com> (raw)
In-Reply-To: 7pf1gt$g56$1@news.wrc.xerox.com

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?




  reply	other threads:[~1999-08-19  4:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-18  4:00 Specifying parameters to a C program? Kevin Lynn
1999-08-19  4:00 ` Adrian Birkett [this message]
1999-08-19  4:00 ` Arlen Williams
1999-08-19  4:00 ` Richard Tomkins
1999-08-19  4:00 ` Fred Kleinsorge
1999-08-19  4:00 ` sol gongola
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox