getprotobynumber, getprotobyname, getprotoent - network protocol database functions
#include <netdb.h> struct protoent *getprotobyname(const char *name); struct protoent *getprotobynumber(int proto); struct protoent *getprotoent(void);
Refer to endprotoent().