Chapter 15: Utilities

fclose.p>.CMCH7.DOC!ZEROS_FCN;

Closes a file opened by imsls_fopen.

Synopsis

#include <imsls.h>

#include <stdio.h>

int imsls_fclose (FILE *file)

Required Arguments

FILE *file  (Input/Output)
A file pointer returned from imsls_fopen.

Return Value

The return value is zero if the file is successfully closed. If there is an error, EOF is returned. EOF is defined in stdio.h.

Description

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

Note: This function is not prototyped in imsls.h. This is to avoid including stdio.h within imsls.h.

Example

See imsls_fopen for an example of its use.


Visual Numerics, Inc.
Visual Numerics - Developers of IMSL and PV-WAVE
http://www.vni.com/
PHONE: 713.784.3131
FAX:713.781.9260