Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (W-Z)
Guardian Procedure Calls Reference Manual522629-013
16-16
WRITEEDIT Procedure
WRITEEDIT Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Example
Related Programming Manual
Summary
The WRITEEDIT procedure accepts a line in unpacked format, converts it into EDIT
packed line format, and writes it to the specified file.
WRITEEDIT is an IOEdit procedure and can only be used with files that have been
opened by OPENEDIT or OPENEDIT_.
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
error returned value
INT
Note. In the TNS/E environment, the CEXTDECS file uses the int data type for 32-bit values.
This is a change from the TNS and TNS/R environments where CEXTDECS uses the long
data type for 32-bit values.
#include <cextdecs(WRITEEDIT)>
short WRITEEDIT ( short filenum
,[ __int32_t record-number ]
,char *unpacked-line
,short unpacked-length
,[ short full-length ]
,[ __int32_t *new-record-number ] );
error := WRITEEDIT ( filenum ! i
,[ record-number ] ! i
,unpacked-line ! i
,unpacked-length ! i
,[ full-length ] ! i
,[ new-record-number ] ); ! o