closedir

Closes a specified directory

Local Servers:nonblocking
Remote Servers:blocking
Classification:POSIX
Platform:NLM
Service:File System

Syntax

   #include <dirent.h>  
    
   int closedir  (  
      DIR   *dirP); 
   

Parameters

dirP

Specifies the directory to be closed.

Return Values

0x00

ESUCCESS

0x04

EBADF

NetWare Error

UNSUCCESSFUL

Remarks

closedir closes the directory specified by the dirP parameter and frees the memory allocated by the opendir function. All open directories are automatically closed when an NLMâ„¢ application is terminated.

See Also

opendir, readdir