From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,bd46baefb4dc58d1 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,bd46baefb4dc58d1 X-Google-Attributes: gid1164f8,public X-Google-Thread: fc7fa,bd46baefb4dc58d1 X-Google-Attributes: gidfc7fa,public From: hoffman@xdelta.enet.dec.nospam (Hoff Hoffman) Subject: Re: C and logical names via sys$trnlnm??? Date: 1999/02/10 Message-ID: <79so01$uri@usenet.pa.dec.com>#1/1 X-Deja-AN: 442926439 Distribution: world References: <36C0FD9F.F96D4EE1@groupz.net> Organization: Compaq Computer Corporation Reply-To: hoffman@xdelta.zko.dec.nospam Newsgroups: comp.os.vms,comp.sys.dec,comp.sys.vms In article <36C0FD9F.F96D4EE1@groupz.net>, Robert Young writes: :Does anyone have an example with sys$trnlnm of pulling a logical name :with C using this VMS C library routine. getenv() is often the easiest way, but rather limited in capabilities. sys$trnlnm is another approach, works nicely too, and lib$get_logical is another option. The OpenVMS freeware CD-ROM (V3.0, in this case) has examples of calling sys$trnlnm including: DISK$FREEWAREV30:[ALTRIS.SRC.ALHEXTRIS]GETHOSTNAME.C DISK$FREEWAREV30:[CALLMON.SRC]CALLMON$UTIL.C DISK$FREEWAREV30:[EMACSV1928.SRC]VMSFNS.C DISK$FREEWAREV30:[FASTLOGIN]FASTLOGIN.C DISK$FREEWAREV30:[FINGER.IUFINGER]IUFINGER.C DISK$FREEWAREV30:[FINGER.IUFINGERD]FUIP.C DISK$FREEWAREV30:[FLIST.OLDSRC]FLIST.C ... :I get my code to compile, but :it is not returning what I 'think' it should be. A concise standalone example of the problem program and the build procedures, please? (It's hard to debug a problem when there's no example provided... :-) Remember that the logical name can be set to be case-blind or case-sensitive, and the logical name table argument is case-sensitive. Also, when posting, please include versions such as that of OpenVMS and DEC C versions. (They probably don't effect this particular problem, but they are useful in various conexts.) -------------------------- pure personal opinion --------------------------- Hoff (Stephen) Hoffman OpenVMS Engineering hoffman#xdelta.zko.dec.com