setnetent()

The setnetent() call opens and rewinds the ETC\NETWORKS file.

Syntax

#include <netdb.h>
void setnetent(stayopen)
int stayopen;

Parameters

stayopen

Description

This call opens and rewinds the ETC\NETWORKS file, which contains information about known networks. If the stayopen parameter is nonzero, the ETC\NETWORKS file stays open after each of the getnet calls.

Related Calls


[Back: sethostent()]
[Next: setprotoent()]