MGL_fclose

Closes an open disk file.

Declaration

int MGLAPI MGL_fclose(
FILE *f)

Prototype In

mgraph.h

Parameters

f | Pointer to file to close

Return Value

0 on success, EOF on an error.

Description

This function is identical to the C library fclose function, but goes via MGL's internal file handling function pointers, which by default simply point to the standard C library functions. These functions are intended to allow the application programmer to override all the MGL file I/O functions with MGL_setFileIO, for custom I/O handling.

See Also

MGL_fopen, MGL_fseek, MGL_ftell, MGL_fread, MGL_fwrite, MGL_setFileIO

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com