Close a file associated with a specified logical unit number.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_int), | intent(in) | :: | lun |
Logical unit number. |
||
integer(kind=c_int), | intent(out) | :: | ierr |
Error code returned by |
subroutine close_file(lun, ierr) bind(C) !! Close a file associated with a specified logical unit number. integer(c_int), intent(in) :: lun !! Logical unit number. integer(c_int), intent(out) :: ierr !! Error code returned by `iostat`. close (unit=lun, iostat=ierr) end subroutine close_file