Supported Browsers Home   
event_t Previous   
fix32_t Next   
Type Definitions Up   

fileio_t

Declaration

typedef struct {
    FILE *  (*fopen)(const char *filename,const char *mode);
    int     (*fclose)(FILE *f);
    int     (*fseek)(FILE *f,long offset,int whence);
    long    (*ftell)(FILE *f);
    size_t  (*fread)(void *ptr,size_t size,size_t n,FILE *f);
    size_t  (*fwrite)(const void *ptr,size_t size,size_t n,FILE *f);
    } fileio_t

Prototype In

mgraph.h

Description

Structure representing the set of file I/O functions that can be overridden in the MGL. When you override the file I/O functions in the MGL, you must provide a compatible function for each of the entries in this structure that behave identically to the standard C library I/O functions of similar names.

Note:    Once you have overridden the file I/O functions, you can access the overriden functions from other libraries and DLL's by calling the MGL_fopen family of functions, which are simply stubs to call the currently overriden function via the function pointers.

Members

fopen

Standard C fopen function replacement

fclose

Standard C fclose function replacement

fseek

Standard C fseek function replacement

ftell

Standard C ftell function replacement

fread

Standard C fread function replacement

fwrite

Standard C fwrite function replacement

 

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