inet ntoa
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: | inet_ntoa() is not reentrant. It is only provided for BSD support. Users should use the equivalent reentrant function called tfInetToAscii(). |
Parameters
- inAddr
- The structure containing the address to convert.
Returns
- 0
- Failure.
- (Other)
- ASCII string of the IP address in dotted decimal notation.