Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (W-Z)
Guardian Procedure Calls Reference Manual522629-013
16-27
WRITEUPDATE[X] Procedures
Syntax for C Programmers
CEXTDECS (through the included file TNSINTH) defines 32-bit values as the
typedef __int32_t which for TNS and TNS/R compiles is defined as long and for
TNS/E compiles is defined as
int.
The function value returned by WRITEUPDATE[X], which indicates the condition
code, can be interpreted by
_status_lt(), _status_eq(), or _status_gt()
(defined in the file
tal.h).
Syntax for TAL Programmers
Parameters
filenum input
INT:value (Use with WRITEUPDATE and WRITEUPDATEX)
is a number of an open file that identifies the file to be written.
buffer input
INT:ref:* (Use with WRITEUPDATE)
STRING .EXT:ref:* (Use with WRITEUPDATEX)
is an array containing the information to be written to the file.
#include <cextdecs(WRITEUPDATE)>
_cc_status WRITEUPDATE ( short filenum
,short _near *buffer
,short write-count
,[ short _near *count-written ]
,[ __int32_t tag ] );
#include <cextdecs(WRITEUPDATEX)>
_cc_status WRITEUPDATEX ( short filenum
,const char *buffer
,short write-count
,[ short *count-written ]
,[ __int32_t tag ] );
CALL WRITEUPDATE[X] ( filenum ! i
,buffer ! i
,write-count ! i
,[ count-written ] ! o
,[ tag ] ); ! i