Guardian Programming Reference Summary for C
Functions Summary (R-Z)
Guardian Programming Reference Summary for C—522630-001
8-43
error
record-number
WRITEREAD[X]
Writes data to a file from an array in the application process, then waits for data to be
transferred back from the file.
10 File already includes a line with the specified record number.
45 All of the file’s possible extents are allocated and full. You can use
EXTENDEDIT to increase the file’s extent size and call WRITEEDIT again.
>= 0 Specifies 1000 times the EDIT line number of the line to be written.
-1 Specifies that the line is written at the beginning of the file.
-2 Specifies that the line is written at the end of the file.
-3 Specifies that the line is written to the line represented by the file’s current
record number.
#include <cextdecs(WRITEREAD)>
_cc_status WRITEREAD ( short filenum /* i */
,short _near *buffer /* i,o */
,short write-count /* i */
,short read-count /* i */
,[ short *count-read ] /* i */
,[ long tag ] ); /* i */
#include <cextdecs(WRITEREADX)>
_cc_status WRITEREADX ( short filenum /* i */
,char *buffer /* i,o */
,short write-count /* i */
,short read-count /* i */
,[ short *count-read ] /* o */
,[ long tag ] ); /* i */
_status_lt (<returned_value>) An error occurred (Call FILEINFO).
_status_eq (<returned_value>) The WRITEREAD[X] is successful.
_status_gt (<returned_value>) CTRL-Y is pressed on the terminal.