VMS Help  —  TCPIP Services, Programming Interfaces, Socket API Functions, hostalias()
    Searches for host aliases associated with a name.
    Format
      #include  <resolv.h>
      char *hostalias  (const char *name);

1  –  Argument

 name
    Points to the name of the host that you want to retrieve aliases
    from.

2  –  Description

    This function searches for the alias associated with the name
    argument. The HOSTALIASES logical name can be used to define the
    name of a file that lists the host aliases, in the form:
        host    alias

3  –  Return Values

    x                  The host alias.
    NULL               Indicates an error.
Close Help