Standards / Extensions | C or C++ | Dependencies |
---|---|---|
XPG4.2 |
both |
#define _XOPEN_SOURCE_EXTENDED 1
#include <netdb.h>
void endprotoent(void);
#define _OE_SOCKETS
#include <netdb.h>
void endprotoent();
The endprotoent() function closes the /etc/protocol or the tcpip.ETC.PROTO data set, which contains information about the networking protocols (IP, ICMP, TCP, and UDP).
Special behavior for C++: To use this function with C++, you must use the _XOPEN_SOURCE_EXTENDED 1 feature test macro.