MeatAxe: File I/O

MeatAxe 2.4

- Main Page
- Related Pages
- Modules
- Data Structures

Data Structures | Functions
File I/O

## Data Structures
class | MtxFile_t
| MeatAxe data file object. More...
## Functions
int | MfIsValid (const MtxFile_t *file)
| Check a File Object.
MtxFile_t * | MfOpen (const char *name)
| Open a File for Reading.
MtxFile_t * | MfCreate (const char *name, int field, int nor, int noc)
| Open a File for Writing.
int | MfClose (MtxFile_t *file)
| Close a File.

## Function Documentation

MtxFile_t* MfCreate | ( | const char * | name,
|  | int | field,
|  | int | nor,
|  | int | noc
| ) |  |

Open a File for Writing.

This functions creates a new file or truncates an existing file. The file is opened for writing, and a MeatAxe file header is written to the file.

int MfIsValid | ( | const MtxFile_t * | file | ) |

Check a File Object.

This function checks if the argument points to a valid MtxFile_t structure.

Parameters:

  file | Pointer to the file.

Returns:
  1 if file points to a valid file object, 0 otherwise.