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

PR_CloseDir

Closes the specified directory.

Syntax

#include <prio.h> 

PRStatus PR_CloseDir(PRDir *dir);

Parameter

The function has the following parameter:

dir
A pointer to a PRDir structure representing the directory to be closed.

Returns

  • If successful, PR_SUCCESS.
  • If unsuccessful, PR_FAILURE. The reason for the failure can be retrieved via PR_GetError.

Description

When a PRDir object is no longer needed, it must be closed and freed with a call to PR_CloseDir call. Note that after a PR_CloseDir call, any PRDirEntry object returned by a previous PR_ReadDir call on the same PRDir object becomes invalid.

See Also

PR_OpenDir

Document Tags and Contributors

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