| MATLAB Application Program Interface Reference | Help Desk |
matGetFp
Get file pointer to a MAT-file
#include "mat.h" FILE *matGetFp(MATFile *mfp);
mfpPointer to MAT-file information.
matGetFp returns the C file handle to the MAT-file with handle mfp. This can be useful for using standard C library routines like ferror() and feof() to investigate error situations.
See matdemo.c in the eng_mat subdirectory of the examples directory for a sample program that illustrates how to use the MATLAB MAT-file routines in a C program.