VMS Help
TCPIP Services, Programming Interfaces, Sockets API, inet_network()

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

    Converts a null-terminated text string representing an internet
    address into a network address in local host format.
    Format
      #include  <in.h>
      #include  <inet.h>
      int inet_network  ( char *cp );

  1 - Argument

 cp
    A pointer to an ASCII (null-terminated) character string
    containing a network address in the dotted-decimal format.

  2 - Description

    This function returns an internet network address as local host
    integer value when an ASCII string representing the address
    in the internet standard dotted-decimal format is given as its
    argument.
                                   NOTE
       The 64-bit return from OpenVMS Alpha systems has zero-
       extended bits in the high 32 bits of R0.

  3 - Return Values

    -1                 Indicates that cp does not point to a proper
                       internet network address.
    x                  An internet network address, in local host
                       order.
  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.