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

Technical Reference: Communications, Volume 2

endprotoent_r Subroutine

Purpose

Closes the /etc/protocols file.

Library

Standard C Library (libc.a)

Syntax

void endprotoent_r(proto_data);
struct protoent_data *proto_data;

Description

The endprotoent_r subroutine closes the /etc/protocols file, which is opened by the calls made to the getprotoent_r subroutine, getprotobyname_r subroutine, or getprotobynumber_r subroutine.

Parameters

proto_data Points to the protoent_data structure

Files

/etc/protocols Contains protocol names.

Related Information

getprotobynumber_r Subroutine, getprotobyname_r Subroutine, getprotoent_r Subroutine, and setprotoent_r Subroutine.

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