The getprotoent() function reads the next line of the
protocol name database file, opening the file if necessary. It returns a
pointer to a structure of type
protoent, which
contains the broken-out fields of a line in the network
protocol database, /etc/protocols.