# NAG CL Interfacex04adc (close)

Settings help

CL Name Style:

## 1Purpose

x04adc closes a file associated with a given file identifier.

## 2Specification

 #include
 void x04adc (Nag_FileID fileid, NagError *fail)
The function may be called by the names: x04adc, nag_file_close or nag_close_file.

## 3Description

x04adc closes a file associated with a given file identifier (as returned by a call of x04acc).

None.

## 5Arguments

1: $\mathbf{fileid}$Nag_FileID Input
On entry: the identifier of the file to be closed. This must have been returned by a call of x04acc. Note that if the filename passed to x04acc was blank or NULL, x04adc does nothing.
2: $\mathbf{fail}$NagError * Input/Output
The NAG error argument (see Section 7 in the Introduction to the NAG Library CL Interface).

## 6Error Indicators and Warnings

NE_NOT_CLOSE_FILEID
Cannot close file associated with identifier $⟨\mathit{\text{value}}⟩$.

Not applicable.

## 8Parallelism and Performance

x04adc is not threaded in any implementation.

None.

See x04acc.