This function opens and sequentially reads the networks database file (TCPIP$SYSTEM:NETWORKS.DAT) to retrieve network information. Returns a pointer to a netent structure that contains the equivalent fields for a network description line in the networks database file. The netent structure is defined in the NETDB.H header file. The networks database file remains open after a call by the getservent() function. Use the endnetent() function to close the networks database file. Use the setnetent() function to open the networks database file and reset the file marker to the beginning of the file. The getnetent() function uses a common static area for its return values, so subsequent calls to this function overwrite any existing network entry. To save the network entry, you must make a copy of it. Related Functions See also setnetent and endnetent.