MFS READ: Difference between revisions
Appearance
Created page with "{{DISPLAYTITLE:MFS_READ}} Read the specified number of bytes from the file to a buffer location. ==Syntax== int far pascal MFS_READ(pcData, pusLength) ==Parameters== ; pcDa..." |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:MFS_READ}} | {{DISPLAYTITLE:MFS_READ}} | ||
Read the specified number of bytes from the file to a buffer location. | Read the specified number of bytes from the file to a buffer location. | ||
==Syntax== | ==Syntax== | ||
int far pascal MFS_READ(pcData, pusLength) | int far pascal MFS_READ(pcData, pusLength) | ||
==Parameters== | ==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. | ;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. | |||
; 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== | ==Returns== | ||
Line 19: | 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. | ||
Revision as of 20:48, 21 May 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.