inet_ntoa

inet_ntoa converts an IPv4 address stored in network byte order in the field of the struct in_addr input parameter to the dotted decimal string representation, for example, “192.168.124.3” and returns the result as a character pointer.

Syntax

char* FAR inet_ntoa(
    struct in_addr           in
);

Parameters

in

A struct in_addr whose s_addr field is the address to be converted into network byte order.

Return Value

The address of a static char buffer containing the converted address.

Requirements

Minimum Supported Version RTX64 2013
Header Winsock2.h
Library RtTcpip.lib