Chapter Contents

Previous

Next
inet_netof

inet_netof



Determines the Network Number

Portability: UNIX compatible


SYNOPSIS
DESCRIPTION
RETURN VALUE
PORTABILITY
IMPLEMENTATION
RELATED FUNCTIONS


SYNOPSIS

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

unsigned long inet_netof(struct in_addr in);


DESCRIPTION

inet_netof separates the elements in an Internet host address in and returns the network number. The host address is specified in network byte order because it is contained in a struct in_addr .


RETURN VALUE

inet_netof returns the network number in host byte order.


PORTABILITY

inet_netof is portable to other environments, including most UNIX systems, that implement BSD sockets.


IMPLEMENTATION

The SAS/C version of inet_netof is a direct port from the BSD UNIX Socket Library.


RELATED FUNCTIONS

inet_addr , inet_lnaof , inet_makeaddr , inet_network , inet_ntoa


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.