NAG CL Interface
x04adc (close)

1 Purpose

x04adc closes a file associated with a given file identifier.

2 Specification

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

3 Description

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

4 References

None.

5 Arguments

1: 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: fail NagError * Input/Output
The NAG error argument (see Section 7 in the Introduction to the NAG Library CL Interface).

6 Error Indicators and Warnings

NE_NOT_CLOSE_FILEID
Cannot close file associated with identifier value.

7 Accuracy

Not applicable.

8 Parallelism and Performance

x04adc is not threaded in any implementation.

9 Further Comments

None.

10 Example

See Section 10 in x04acc.