TCP/IP Programming Manual
unsigned long l_addr;
char *addr_ptr;
TAL Synopsis
?NOLIST, SOURCE SOCKDEFT
?NOLIST, SOURCE SOCKPROC
l_addr := inet_network (addr_ptr);
INT(32) l_addr ;
STRING .EXT addr_ptr;
l_addr
return value; the network address portion of the Internet address. This is the return value.
addr_ptr
input value; points to an Internet address in dotted-decimal format.
Errors
No errors are returned for this function.
inet_ntoa
The inet_ntoa function converts an address from binary format to dotted-decimal format. This
library routine is for INET applications. For protocol-independent applications, see inet_ntop
(page 138).
C Synopsis
#include <socket.h>
#include <in.h>
#include <in6.h>
#include <netdb.h>
asc_ptr = inet_ntoa (in);
struct in_addr in;
char *asc_ptr;
TAL Synopsis
?NOLIST, SOURCE SOCKDEFT
?NOLIST, SOURCE SOCKPROC
asc_ptr := inet_ntoa (in);
INT(32) asc_ptr;
INT .EXT in(in_addr);
asc_ptr
return value; points to a null-terminated character string containing the Internet address in
dotted-decimal format. All numbers are expressed in decimal base. This is the return value.
in
input value; a 4-byte Internet address.
Errors
No errors are returned for this function.
inet_ntoa 137