Closes the /etc/services file.
Standard C Library (libc.a)
#include <netdb.h> void endservent_r(serv_data) struct servent_data *serv_data;
The endservent_r subroutine closes the /etc/services file, which is opend by a call made to the getservent_r subroutine, getservbyname_r subroutine, or getservbyport_r subroutine opens the /etc/services file.
serv_data | Points to the servent_data structure |
To close the /etc/services file, type:
endservent_r(serv_data);
/etc/services | Contains service names. |
setservent_r Subroutine, getservent_r Subroutine, getservbyport Subroutine, and getservbyname_r Subroutine.