hide long namesshow long names
hide short namesshow short names
Integer type:  int32  int64  nag_int  show int32  show int32  show int64  show int64  show nag_int  show nag_int

PDF version (NAG web site, 64-bit version, 64-bit version)
Chapter Contents
Chapter Introduction
NAG Toolbox

NAG Toolbox: nag_file_close (x04ad)

Purpose

nag_file_close (x04ad) closes a file associated with a given Fortran unit number.

Syntax

[ifail] = x04ad(iounit)
[ifail] = nag_file_close(iounit)

Description

nag_file_close (x04ad) is especially useful if the calling language is not Fortran. It closes a file associated with a given Fortran unit number.

References

None.

Parameters

Compulsory Input Parameters

1:     iounit – int64int32nag_int scalar
The Fortran unit number which identifies the file to be closed.

Optional Input Parameters

None.

Input Parameters Omitted from the MATLAB Interface

None.

Output Parameters

1:     ifail – int64int32nag_int scalar
ifail = 0ifail=0 unless the function detects an error (see [Error Indicators and Warnings]).

Error Indicators and Warnings

Errors or warnings detected by the function:
  ifail = 1ifail=1
Failure to close the file.

Accuracy

Not applicable.

Further Comments

None.

Example

function nag_file_close_example
iounit = int64(4);
[ifail] = nag_file_close(iounit)
 

ifail =

                    0


function x04ad_example
iounit = int64(4);
[ifail] = x04ad(iounit)
 

ifail =

                    0



PDF version (NAG web site, 64-bit version, 64-bit version)
Chapter Contents
Chapter Introduction
NAG Toolbox

© The Numerical Algorithms Group Ltd, Oxford, UK. 2009–2013