Open System Services Library Calls Reference Manual (G06.27+, H06.04+)
OSS Library Calls (i - m) inet_ntoa(3)
NAME
inet_ntoa - Translates an integer Internet IPv4 address into a dotted-decimal-formatted character
string
LIBRARY
G-series native OSS processes: /G/system/sysnn/zinetsrl
H-series OSS processes: /G/system/zdllnnn/zinetdll
SYNOPSIS
#include <arpa/inet.h>
char *inet_ntoa (
struct in_addr net_addr);
PARAMETERS
net_addr An Internet host address.
DESCRIPTION
The inet_ntoa() function takes an Internet IPv4 host address and returns a dot-formatted charac-
ter string in network-byte order. (The most-significant byte is leftmost, the least-significant byte
is rightmost).
RETURN VALUES
Upon completion, the inet_ntoa() function returns a dot-formatted Internet character string
address.
ERRORS
The inet_ntoa() function does not set errno.
NOTES
The returned string address points to static information; this information is overwritten by the
next call to inet_ntoa().
RELATED INFORMATION
Functions: inet_netof(3), inet_lnaof(3), inet_makeaddr(3), inet_addr(3), inet_network(3).
527187-004 Hewlett-Packard Company 4−21