Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (D-E)
Guardian Procedure Calls Reference Manual522629-013
4-105
EDITREADINIT Procedure
-3 Format error (not EDIT file), or buffer length is incorrect
-6 Invalid buffer address. Edit control block was not within lower half of user data
stack.
edit-controlblk output
INT:ref:*
is an uninitialized array that is declared globally. Forty words of the edit control
block are used for control information. The remainder is used as an internal buffer
by EDITREAD. The length, in words, of the edit control block must be at least 40
plus
bufferlen divided by 2. This is the same array as specified in the edit-
controlblk parameter to EDITREAD. You should not modify the contents of
edit-controlblk.
filenum input
INT:value
is the number of an open file that identifies the text file to be read.
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).
Example
STAT := EDITREADINIT ( CONT^BLOCK , FNUM , BUF^LEN );