MGL_fseek

Repositions the file pointer on a stream.

Declaration

int MGLAPI MGL_fseek(
    FILE *f,
    long offset,
    int whence)

Prototype In

mgraph.h

Parameters

f

Stream of interest

offset

Offset of location from whence

whence

New location of file pointer

 

Return Value

0 if move was successful, otherwise non-zero.

Description

This function is identical to the C library fseek 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_fclose, MGL_ftell, MGL_fread, MGL_fwrite, MGL_setFileIO

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