Jump to content

MFS READ: Difference between revisions

From EDM2
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..."
 
No edit summary
 
(One intermediate revision by one other user not shown)
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 20: Line 21:
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]]
[[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.