Guardian Programming Reference Summary for C
Functions Summary (D-F)
Guardian Programming Reference Summary for C—522630-001
5-19
status
EDITREADINIT
Prepares a buffer in the application program’s data area for subsequent calls to
EDITREAD.
status
ERRNO_GET_
Obtains the value of the errno variable set by many OSS, native C/C++, and some
Guardian routines.
C programmers using the C run-time libraries, CRE support libraries, or shared run-time
libraries (SRLs) can access the errno variable directly and do not use this procedure.
>= 0 = Indicates that the reading of the file was successful.
-1 = End of file encountered.
-2 = Error occurred while reading.
-3 = Text file format error.
-4 = Sequence error.
-5 = Checksum error.
-6 = Invalid buffer address.
#include <cextdecs(EDITREADINIT)>
short EDITREADINIT ( short _near *edit-controlblk /* i */
,short filenum /* i */
,short bufferlen ); /* i */
0 = Successful (OK to read).
-1 = End of file detected (empty file).
-2 = I/O error.
-3 = Format error (not EDIT file), or buffer length is incorrect.
-6 = Invalid buffer address.