inet_network(3) — Subroutines
OSF
NAME
inet_network − Translates an Internet dot-formatted address string to a network address integer
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> u_long inet_network ( char ∗string );
PARAMETERS
stringDefines an Internet dot-formatted address as the character string a.b.c.d, where a, b, c and d may be expressed as decimal, octal, or hexadecimal in the C-language idiom.
DESCRIPTION
The inet_network() function translates a dot-formatted Internet network character address string to a network byte-ordered address integer (most significant byte leftmost, least significant byte rightmost).
RETURN VALUES
Upon successful completion, the inet_network() functionreturns an Internet byte-ordered address integer.When the inet_network() function fails, -1 is returned.
RELATED INFORMATION
Functions: inet_netof(3), inet_lnaof(3), inet_makeaddr(3), inet_addr(3), inet_ntoa(3)