MGL_ftell

Returns the current file pointer.

Declaration

long MGLAPI MGL_ftell(
    FILE *f)

Prototype In

mgraph.h

Parameters

f

Pointer to file of interest

 

Return Value

Current file pointer on success, -1L on error.

Description

This function is identical to the C library fopen function, but goes via the MGL's internal file handling function pointers, which by default simply points 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_fclose, MGL_fseek, MGL_fread, MGL_fwrite, MGL_setFileIO

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