[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Communications, Volume 2

endservent_r Subroutine

Purpose

Closes the /etc/services file.

Library

Standard C Library (libc.a)

Syntax

#include <netdb.h>
void endservent_r(serv_data)
struct servent_data *serv_data;

Description

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.

Parameters

serv_data Points to the servent_data structure

Examples

To close the /etc/services file, type:

endservent_r(serv_data);

Files

/etc/services Contains service names.

Related Information

setservent_r Subroutine, getservent_r Subroutine, getservbyport Subroutine, and getservbyname_r Subroutine.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]