The endprotoent routine closes the network protocols database
file, previously opened with the getprotoent, getprotobyname, or
getprotobynumber routine.
See also getprotobyname, getprotoent and getprotobynumber in this
section.
Errors
If the endprotoent routine
does not exist in your TCP/IP library, then errno is set to
ENOSYS.