HM_fwrite()

Writes information to a binary file.

Syntax

void HM_fwrite(void * ptr, int size, int n, FILE * file);

Type

HyperMesh hmlib Function

Description

Writes information to a binary file.

Inputs

ptr
A pointer to a block of memory to be written to the file.
size
The size of each item to be written.
n
The number of items to be written.
file
A pointer to an open binary file.

Example

If the write is not successful, the function calls HM_terminate() with an appropriate error message.

Errors

None.