inet_network

Converts a text string representing an Internet network address in the standard Internet "." notation into an Internet network address as machine-format integer values.

Format

#include  <in.h>

#include  <inet.h>

int inet_network  (char *cp);

Argument

cp
A pointer to an ASCIZ (null-terminated) character string containing a network address in the standard Internet "." format.

Description

This routine returns an Internet network address as machine- format integer values when given as its argument an ASCIZ string representing the address in the Internet standard "." notation.

Return Values
-1  Indicates that cp does not point to a proper Internet network address. 
An Internet network address as machine-format integer values. 


Previous Page | Next Page | Table of Contents | Index