Usenet comp.sys.vms (1990-2004)
 help / color / mirror / Atom feed
* C and logical names via sys$trnlnm???
@ 1999-02-09  5:00 Robert Young
  1999-02-10  5:00 ` Hoff Hoffman
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Young @ 1999-02-09  5:00 UTC (permalink / raw)


Does anyone have an example with sys$trnlnm of pulling a logical name
with C using this VMS C library routine. I get my code to compile, but
it is not returning what I 'think' it should be.

Thanks in advance

bob young




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: C and logical names via sys$trnlnm???
  1999-02-09  5:00 C and logical names via sys$trnlnm??? Robert Young
@ 1999-02-10  5:00 ` Hoff Hoffman
  0 siblings, 0 replies; 2+ messages in thread
From: Hoff Hoffman @ 1999-02-10  5:00 UTC (permalink / raw)



In article <36C0FD9F.F96D4EE1@groupz.net>, Robert Young <rcyoung@groupz.net> 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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-02-10  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-09  5:00 C and logical names via sys$trnlnm??? Robert Young
1999-02-10  5:00 ` Hoff Hoffman

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