Jump to content

MFS READ: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
No edit summary
 
Line 20: Line 20:
==Remarks==
==Remarks==
The current file position is advanced by the number of bytes read.
The current file position is advanced by the number of bytes read.
[[Category:IFS Interfaces]]

Latest revision as of 21:29, 20 November 2019

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.