Gets a network file entry from the networks database file.
#include <netdb.h> struct netent *getnetnet (void);
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.
x | A pointer to a netent structure. |
0 | Indicates an error or EOF. |