Jump to content

MFS_READ

From EDM2

Read the specified number of bytes from the file to a buffer location.

Syntax

int far pascal MFS_READ(pcData, pusLength)

Parameters

pcData
is a pointer to the data area to be read into. The data area is guaranteed to be below the 1-Meg boundary.
pusLength
is a pointer to a word which on entry specifies the number of bytes to be read. On return, it is filled in by the mini-FSD with the number of bytes successfully read.

Returns

If no error is detected, a zero error code is returned. If an error is detected, a non-zero error code is returned.

Sample

char far * pcData;
unsigned long far * pusLength;

int far pascal MFS_READ(pcData, pusLength)

Remarks

The current file position is advanced by the number of bytes read.