getnetent

Gets a network file entry from the networks database file.

Format

#include  <netdb.h>

struct netent *getnetnet  (void);

Description

The getnetent routine opens and sequentially reads the networks database file to retrieve network information.

See the <netdb.h> header file for a description of the netent structure.

The getnetent routine uses a common static area for its return values, so subsequent calls to this routine overwrite any existing network entry. You must make a copy of the network services entry, if you wish to save it.

See also setnetent, and endnetent in this section.

Return Values
A pointer to a netent structure. 
Indicates an error or EOF. 


Previous Page | Next Page | Table of Contents | Index