[Previous] [Contents] [Index] [Next]

inet_ntoa()

Convert an Internet address into a string

Synopsis:

#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

char * inet_ntoa( struct in_addr in );

Library:

socket3r.lib, socket3s.lib

Description:

The inet_ntoa() routine converts the Internet address stored in the in argument into an ASCII string representing the address in dot notation (for example, "127.0.0.1").

For more information on Internet addresses, see inet_aton().

Returns:

A string representing an Internet address.

Classification:

Standard Unix, POSIX 1003.1g (draft)

Safety:
Interrupt handler No
Signal handler No
Thread No

Caveats:

The string returned by this function is stored in a static buffer that's reused for every call to inet_ntoa().

See also:

inet_aton(), inet_ntoa_r()


[Previous] [Contents] [Index] [Next]