Guardian Procedure Calls Reference Manual
bufferlen
input
INT:value
is the size, in bytes, of the internal buffer area used by EDITREAD. This parameter determines
the amount of data that EDITREAD reads from the text file on disk (not the amount of data
transferred into the buffer specified as a parameter to EDITREAD). The size of the internal buffer
area must be a power of two, from 64 to 2048 bytes (that is, 64, 128, 256, ..., 2048).
Returned Value
INT
A status value that indicates the outcome of the call:
Success (OK to read).0
End of file detected (empty file).-1
I/O error.-2
Format error (not EDIT file), or buffer length is incorrect.-3
Invalid buffer address. Edit control block was not within lower half of user data stack.-6
Example
STAT := EDITREADINIT ( CONT^BLOCK , FNUM , BUF^LEN );
EDITREADINIT Procedure 339