Guardian Programming Reference Summary for C

Functions Summary (R-Z)
Guardian Programming Reference Summary for C522630-001
8-41
time-limit
WRITE[X]
Writes data from an array in the application program to an open file.
WRITE^FILE
Writes a file sequentially. The file must be open and have write or read/write access.
WRITE^FILE is a sequential I/O (SIO) procedure and can be used only with files that
have been opened by OPEN^FILE.
<> 0D Wait for completion.
0D Check for completion.
0D (and error = 40) No completion.
1D Willing to wait forever.
#include <cextdecs(WRITE)>
_cc_status WRITE ( short filenum /* i */
,short _near *buffer /* i */
,short write-count /* i */
,[ short *count-written ] /* o */
,[ long tag ] ); /* i */
#include <cextdecs(WRITEX)>
_cc_status WRITEX ( short filenum /* i */
,const char *buffer /* i */
,short write-count /* i */
,[ short *count-written ] /* o */
,[ long tag ] ); /* i */
_status_lt (<returned_value>) An error occurred (call FILEINFO).
_status_eq (<returned_value>) The WRITE[X] is successful.
#include <cextdecs(WRITE_FILE)>
short WRITE_FILE ( short _near *file-fcb /* i */
,short _near *buffer /* i */
,short write-count /* i */
,[ short reply-error-code ] /* i */
,[ short forms-control-code ] /* i */
,[ short nowait ] ); /* i */