inet_neta()

convert Internet host address to Internet standard address 

Function


SYNOPSIS

#include <arpa/inet.h>

char *inet_neta(in_addr_t src, char *dst, size_t size);


DESCRIPTION

The inet_neta() function converts an Internet host address to a string in the Internet standard notation, and stores it in the specified buffer.


PARAMETERS

src 

Is the Internet host address to convert

dst 

Points to the buffer where the converted address is stored.

size 

Is the size of dst, in bytes.


RETURN VALUES

On success, the inet_neta() function returns dst on success. Otherwise, it returns a null pointer, and sets errno to one of the following:

EMSGSIZE 

The buffer specified by dst and size is not large enough to contain the converted address.


CONFORMANCE

MKS Toolkit UNIX APIs extension


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

The implementation of this function is taken from the Bind resolver implementation from the Internet Software Consortium.


AVAILABILITY

MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
inet_addr(), inet_aton(), inet_lnaof(), inet_makeaddr(), inet_net_ntop(), inet_net_pton(), inet_netof(), inet_network(), inet_ntoa(), inet_ntop(), inet_pton()


MKS Toolkit 9.2 Documentation Build 16.