From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: f7344,f91985259c68da43 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,f91985259c68da43 X-Google-Attributes: gid1164f8,public From: Ferry Bolhar Subject: Re: Q: VMS "CLD"/programming problem Date: 1998/11/05 Message-ID: <910274332.483037@mozart.adv.magwien.gv.at>#1/1 X-Deja-AN: 408663041 Cache-Post-Path: proxy.dienste.wien.at!unknown@mozart.adv.magwien.gv.at Content-Transfer-Encoding: 8bit References: <364095AC.1119@nswc.navy.mil> To: dwfishe@nswc.navy.mil Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@Austria.EU.net X-Trace: fleetstreet.Austria.EU.net 910274214 9764 141.203.254.23 (5 Nov 1998 13:56:54 GMT) Organization: Magistrat der Stadt Wien, MA-14 X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) Mime-Version: 1.0 NNTP-Posting-Date: 5 Nov 1998 13:56:54 GMT Newsgroups: comp.sys.dec,comp.os.vms 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."