This function opens the networks database file and resets the
file marker to the beginning of the file.
Passing a nonzero stay_open argument keeps the connection open
until you call the endnetent() or exit() function.
Related Functions
See also endnetent(), getnetent(), and exit().