getnetbyaddr, getnetbyname, getnetent - network database functions
#include <netdb.h> struct netent *getnetbyaddr(uint32_t net, int type); struct netent *getnetbyname(const char *name); struct netent *getnetent(void);
Refer to endnetent().