endprotoent() — Work with a protocol entry

Standards

Standards / Extensions C or C++ Dependencies

XPG4.2
Single UNIX Specification, Version 3

both  

Format

X/Open:
#define _XOPEN_SOURCE_EXTENDED 1
#include <netdb.h>

void endprotoent(void);
Berkeley sockets:
#define _OE_SOCKETS
#include <netdb.h>

void endprotoent();

General description

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.

Related information