The getprotobyname() call searches the hlq.ETC.PROTO data set for the specified protocol name.
The getprotobyname() call returns a pointer to a protoent structure for the network protocol specified on the call.
#include <manifest.h>
#include <netdb.h>
struct protoent *getprotobyname(char *name)
The return value points to static data that is overwritten by subsequent calls. A pointer to a protoent structure indicates success. A NULL pointer indicates an error or end-of-file. When a NULL pointer or 0 is returned, the value of errno is indeterminate, and therefore, the output from a tcperror() call cannot be validated.
endprotoent(), getprotobynumber(), getprotoent(), setprotoent()