inet_ntoa(3) — Subroutines
NAME
inet_ntoa - Translates an Internet integer address into a dot-formatted character string
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <netinet/in.h> #include <arpa/inet.h> char ∗inet_ntoa (
struct in_addr net_addr );
PARAMETERS
net_addr Defines an Internet network-byte ordered integer address to be converted to an equivalent character string.
DESCRIPTION
The inet_ntoa() function translates an Internet byte-ordered address integer into a dot-formatted character string. The dot-formatted string is returned in network-byte order (most significant byte leftmost, least significant byte rightmost).
RETURN VALUES
Upon successful completion, the inet_ntoa() function returns a dot-formatted Internet character string address. When the inet_ntoa() function fails, -1 is returned.
RELATED INFORMATION
Functions: inet_netof(3), inet_lnaof(3), inet_makeaddr(3), inet_addr(3), inet_network(3)