# PXFCLOSEDIR

POSIX Subroutine: Closes the directory stream.

## Module

USE IFPOSIX

CALL PXFCLOSEDIR (idirid,ierror)

idirid | (Input) INTEGER(4). The directory ID obtained from PXFOPENDIR.
ierror | (Output) INTEGER(4). The error status.

If successful, ierror is set to zero; otherwise, an error code.

The PXFCLOSEDIR subroutine closes the directory associated with idirid.

Parent topic: POSIX* Library Routines

## See Also

PXFOPENDIR