Chapter Contents

Previous

Next
inet_lnaof

inet_lnaof



Determines a Local Network Address

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_lnaof(struct in_addr in);


DESCRIPTION

inet_lnaof separates the elements in an Internet host address, specified by in , and returns the local network address.

The host address is in network byte order because it is contained in a struct in_addr .


RETURN VALUE

inet_lnaof returns the network address in host byte order.


PORTABILITY

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


IMPLEMENTATION

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


RELATED FUNCTIONS

inet_addr , inet_makeaddr , inet_netof , inet_network , inet_ntoa


Chapter Contents

Previous

Next

Top of Page

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