inet ntoa

Jump to: navigation, search

Table of Contents >> Programmer's Reference

#include <trsocket.h>

char * inet_ntoa (struct in_addr inAddr);

Function Description

This function converts an IP address structure (the sin_addr element of the sockaddr_in structure) to an ASCII string in dotted decimal notation.

Note Note: inet_ntoa() is not reentrant. It is only provided for BSD support. Users should use the equivalent reentrant function called tfInetToAscii().


  • inAddr
    The structure containing the address to convert.


  • 0
  • (Other)
    ASCII string of the IP address in dotted decimal notation.

Table of Contents >> Programmer's Reference