MAT_GETFILEACCESSMODE(3) Library Functions Manual MAT_GETFILEACCESSMODE(3)

Mat_GetFileAccessModeReturns the file access mode of a MATLAB MAT file given a MAT file structure.

#include <matio.h>

enum mat_acc
Mat_GetFileAccessMode(const mat_t *matfp);

The () function returns the file access mode of the MATLAB MAT file given by the MAT file structure.

The return value is one of the following:

  • if the file is opened with read-only access or not opened at all.
  • if the file is opened with read/write access.

Mat_CreateVer(3), Mat_Open(3), Mat_GetFilename(3), Mat_GetHeader(3)

November 20, 2023 Linux 6.11.5-arch1-1