From: Ferry Bolhar <bol@adv.magwien.gv.at>
To: dwfishe@nswc.navy.mil
Subject: Re: Q: VMS "CLD"/programming problem
Date: 1998/11/05 [thread overview]
Message-ID: <910274332.483037@mozart.adv.magwien.gv.at> (raw)
In-Reply-To: 364095AC.1119@nswc.navy.mil
David W. Fisher wrote:
>
> I've written a program in c. Using argc and argv it can determine what's
> coming into main. The tricky thing is the c-program is being called via
> a verb setup in a ".CLD" file. Consequently, argv[0] contains the name
> of my c-program and not the verb the user typed-in at the command line.
> How can I determine what the user typed-in (i.e., the verb)?
>
> Thanks
Include this in your code:
char retbuf[16];
short retlen;
$DESCRIPTOR(vrb_dsc,"$VERB");
$DESCRITPOR(vrb_ret,retbuf);
cli$get_value(&vrb_dsc,&vrb_ret,&retlen);
retbuf[retlen] = 0;
You may obtain the verb from retbuf.
Greetings, Ferry
--
Ing. Ferry Bolh�r-Nordenkampf
Magistrat der Stadt Wien (MA-14) A - 1010 Vienna (Austria)
Phone: +43 1 4000 98632 E-Mail: bol@adv.magwien.gv.at
"Wenn hier einer schuld ist, dann immer nur der Computer."
prev parent reply other threads:[~1998-11-05 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-04 5:00 Q: VMS "CLD"/programming problem David W. Fisher
1998-11-04 5:00 ` Joshua Cope
1998-11-05 5:00 ` Ferry Bolhar [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