Opens and rewinds the networks database file.
Format
#include <netdb.h>
void setnetent (int stay_open);
Arguments
- stay_open
- Specifies a value used to indicate when to close the networks
database file:
- 0 (zero) to close the networks database file after each
call to the getnetent.
- nonzero to keep the networks database file open after each
call.
Description
The setnetent routine opens the networks database file and
resets the file marker to the beginning of the file.
Passing a nonzero value to the stay_open parameter keeps
the connection open until you call the endnetent or exit routine.
See also endnetent, getnetent, and exit in this section.
Previous Page | Next Page | Table of Contents | Index