Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int gp_system_rmdir ( const char *  dirname  ) 

rmdir UNIX functionality

Parameters:
dirname directory to remove
Removes a empty directory.

Returns:
a gphoto error code

Definition at line 165 of file gphoto2-port-portability.c.

References GP_ERROR, and GP_OK.

                                          {

      if (rmdir (dirname) < 0)
            return (GP_ERROR);

      return (GP_OK);
}


Generated by  Doxygen 1.6.0   Back to index