fclose

Closes a file opened by fopen.

Synopsis

fclose (file)

Required Arguments

structure file (Input/Output)
A structure returned from fopen.

Return Value

The return value is zero if the file is successfully closed. If there is an error, the return value is negative 1.

Description

The function fclose is a wrapper around the standard C runtime function fclose. It is used to close files opened with fopen.

Note that fopen should only be used to open a file whose file pointer will be input to an PyIMSL function. Use fclose to close files opened with fopen.

Example

See fopen for an example of its use.