m_openro
This function opens an existing file in read-only mode.
- Syntax: int far m_openro(FCB far *fp, char far *filespec, int len, int sys,
int nobuf)
- Parameters: FCB far *fp - Pointer to the File Control Block
char far *filespec - Path and filename of file to be opened
int len - Size of file to be opened
int sys - 0 =
non-zero = the desired file exists in the Metro system
directory (likely to be unnecessary in the
hand-held).
int nobuf - 0 = The file will be buffered.
non-zero = No buffering will be performed.
- Returns: If successful, the values in fp will be updated and 0 will be returned.
Otherwise, a non-zero error code is returned.