MGL_fwrite
Writes to a stream.
Declaration
size_t MGLAPI MGL_fwrite(
const void *ptr,
size_t size,
size_t n,
FILE *f)
Prototype In
mgraph.h
Parameters
ptr |
Pointer to the starting location of data to be written |
size |
Size of items to be written to file |
n |
Number of items to be written to file |
f |
Pointer to the file stream to write the data to |
Return Value
The number of items written.
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_ftell, MGL_fread, MGL_setFileIO
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com