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