endnetgrent_r Subroutine

Purpose

Handles the group network entries.

Library

Standard C Library (libc.a)

Syntax

#include <netdb.h>
 void endnetgrent_r (void **ptr)

Description

The setnetgrent_r subroutine establishes the network group from which the getnetgrent_r subroutine will obtain members, and also restarts calls to the getnetgrent_r subroutine from the beginnning of the list. If the previous setnetgrent_r call was to a different network group, an endnetgrent_r call is implied.

The endnetgrent_r subroutine frees the space allocated during the getnetgrent_r calls.

Parameters

Item Description
ptr Keeps the function threadsafe.

Files

Item Description
/etc/netgroup Contains network groups recognized by the system.
/usr/include/netdb.h Contains the network database structures.