inet_ntoa

Converts an Internet address in its binary format into an ASCII string representing the address in standard dotted decimal notation.

Library:LibC
Standard:BSD
Service:Networking

Syntax

  #include <arpa/inet.h> 
   
  char *inet_ntoa (
     struct in_addr  addr);
  

Parameters

addr

(IN) Specifies the IP address (in in_addr format).

Return Values

Returns a pointer to the array containing the ASCII string representing the address in Internet standard dot notation.

Remarks

The library fills this array with the converted address and returns a pointer to this array. The contents are destroyed if inet_ntoa is called subsequently by the same or a different thread in the NLM.