Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
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
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zinetdll |
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/yinetdll |
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).
NOTES
The returned string address points to static information; this information is overwritten by the
next call to inet_ntoa( ).
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.
RELATED INFORMATION
Functions: inet_netof(3), inet_lnaof(3), inet_makeaddr(3), inet_addr(3), inet_network(3).
527187-017 Hewlett-Packard Company 4−25