Searches the protocols database until a matching protocol name is found or until EOF is encountered.
#include <netdb.h> struct protoent *getprotobyname (char *name);
See the <netdb.h> header file for a description of the protoent structure.
See also getprotoent and getprotobynumber in this section.
NULL | Indicates EOF or an error. |
x | A pointer to a protoent structure. |