endnetent() — Close network information data sets

Standards

Standards / Extensions C or C++ Dependencies

XPG4.2
Single UNIX Specification, Version 3

both  

Format

X/Open:
#define _XOPEN_SOURCE_EXTENDED 1
#include <netdb.h>

void endnetent(void);
Berkeley sockets:
#define _OE_SOCKETS
#include <netdb.h>

void endnetent();

General description

The endnetent() function closes the tcpip.HOSTS.ADDRINFO data set. The tcpip.HOSTS.ADDRINFO data set contains information about known networks.

You can use the X_ADDR environment variable to specify a data set other than tcpip.HOSTS.ADDRINFO. For more information on these data sets and environment variables, see z/OS V2R1.0 Communications Server: IP Configuration Guide.

Special behavior for C++: To use this function with C++, you must use the _XOPEN_SOURCE_EXTENDED 1 feature test macro.

Related information