nag_close_file (x04adc) (PDF version)
x04 Chapter Contents
x04 Chapter Introduction
NAG Library Manual

NAG Library Function Document

nag_close_file (x04adc)

 Contents

    1  Purpose
    7  Accuracy
    10  Example

1  Purpose

nag_close_file (x04adc) closes a file associated with a given file identifier.

2  Specification

#include <nag.h>
#include <nagx04.h>
void  nag_close_file (Nag_FileID fileid, NagError *fail)

3  Description

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

4  References

None.

5  Arguments

1:     fileid Nag_FileIDInput
On entry: the identifier of the file to be closed. This must have been returned by a call of nag_open_file (x04acc). Note that if the filename passed to nag_open_file (x04acc) was blank or NULL, nag_close_file (x04adc) does nothing.
2:     fail NagError *Input/Output
The NAG error argument (see Section 3.6 in the Essential Introduction).

6  Error Indicators and Warnings

NE_NOT_CLOSE_FILEID
Cannot close file associated with identifier value.

7  Accuracy

Not applicable.

8  Parallelism and Performance

Not applicable.

9  Further Comments

None.

10  Example

See Section 10 in nag_open_file (x04acc).

nag_close_file (x04adc) (PDF version)
x04 Chapter Contents
x04 Chapter Introduction
NAG Library Manual

© The Numerical Algorithms Group Ltd, Oxford, UK. 2015