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

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?

assuming myprog resides in drive:[dirspec], yo can use either of:

$mc  drive:[dirspec]myprog -i param1 -a param2

or

$mycmd :== $drive:[dirspec]myprog.exe     ! define a foreign command
then use
$mycmd -i param1 -a param2

sol



      parent 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 ` Arlen Williams
1999-08-19  4:00 ` Adrian Birkett
1999-08-19  4:00 ` Fred Kleinsorge
1999-08-19  4:00 ` Richard Tomkins
1999-08-19  4:00 ` sol gongola [this message]
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