PR_Close

Closes a file descriptor.

Syntax

#include <prio.h> 

PRStatus PR_Close(PRFileDesc *fd);

Parameters

The function has the following parameters:

fd
A pointer to a PRFileDesc object.

Returns

One of the following values:

Description

The file descriptor may represent a normal file, a socket, or an end point of a pipe. On successful return, PR_Close frees the dynamic memory and other resources identified by the fd parameter.