fwrite

This macro writes the contents of a buffer to a file or window. You must define the identity of the file with either the fopen macro or the FOPEN command. You can also specify the file as the Standard I/O window.

Syntax:

unsigned long fwrite (buffer, count, size, outputid)
void *
buffer;
unsigned
count;
unsigned
size;
int
outputid;

where:

buffer

Specifies the start of the area into which the data is written.

count

Specifies the number of elements.

size

Specifies the size of each element in bytes.

outputid

The number of the window or file where the data is to be written. This must be a user-defined windowid or fileid.

Return value

unsigned long

The size of the data that is written, and is the same as size * count.

 

Rules

None.