Gets a protocol database entry from the protocols database file.
#include <netdb.h> struct protoent *getprotoent (void);
See the <netdb.h> header file for a description of the protoent structure.
See also getprotobyname, getprotobynumber, setprotoent, and endprotoent in this section.
x | A pointer to a protoent structure. |
NULL | Indicates an error or EOF. |