m_read
This call reads up to len bytes of data from the I/O stream fp into buffer.
- Syntax: int far m_read(FCB far *fp, char far *buffer, int len, int far *lenp)
- Parameters: FCB far *fp - Pointer to the data to be read
char far *buffer - Pointer to the buffer to receive the data
int len - Length of data (in bytes) to be read
int far *lenp - This parameter identifies how many bytes were actually
read. If *lenp != len and no error value
is returned, the end-of-file has been reached.
- Returns: 0 - if successful
Any other value indicates an error condition.