Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

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:

  • If file descriptor is closed successfully, PR_SUCCESS.
  • If the file descriptor is not closed successfully, PR_FAILURE.

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.

Document Tags and Contributors

 Contributors to this page: teoli, Rappo
 Last updated by: teoli,