inet_ntoa

Converts an Internet address into a text string representing the address in the standard Internet "." notation.

Format

#include  <in.h>

#include  <inet.h>

char *inet_ntoa  (struct in_addr in);

Argument

in
An Internet address in network byte order.

Description

This routine converts an Internet address into an ASCIZ (null-terminated) string representing that address in the standard Internet "." notation.
Warning
Arguments should not be passed as integers because of how DEC C handles struct arguments.

Because the string is returned in a static buffer that will be overwritten by successive calls to inet_ntoa, it is recommended to copy the string to a safe place.

Return Value
A pointer to a string containing the Internet address in "." notation. 


Previous Page | Next Page | Table of Contents | Index