Tuesday, August 16, 2011

Using the endprotoent(3) Function

When your program is finished consulting with the /etc/protocols file, it can request that the implicitly opened file be closed. This is especially important for server programs to do, because file descriptors are often scarce. The function prototype for endprotoent(3) is given as follows:

#include <netdb.h>
void endprotoent(void);

There are no arguments to this function, and there are no return value or errors to check.

No comments:

Post a Comment