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

Item Description
proto_data Points to the protoent_data structure

Files

Item Description
/etc/protocols Contains protocol names.