< NSPR API Reference < I/O Functions
Closes the specified directory.
The function has the following parameter:
dir
PRDir structure representing the directory to be closed.
PR_SUCCESS.
PR_FAILURE. The reason for the failure can be retrieved via PR_GetError.
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.
Page last modified 00:57, 25 Apr 2006 by Rappo