Library /sys$common/syshlp/HELPLIB.HLB  —  TCPIP Services, Programming Interfaces, Socket API Functions, gethostaddr
    Returns the standard host address for the processor.
    Format
      #include  <socket.h>
      int gethostaddr  (char *addr);

1  –  Argument

 addr
    A pointer to the buffer in which the standard host address for
    the current processor is returned.

2  –  Description

    This function returns the standard host address for the current
    processor. The returned address is null-terminated. The addr
    parameter must point to at least 16 bytes of free space.
    Host addresses are limited to 16 characters.

3  –  Return Values

    0                  Indicates success.
    -1                 Indicates that an error has occurred and is
                       further specified in the global errno.
Close Help