Guardian Procedure Calls Reference Manual

WRITEEDITP Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Returned Value
Example
Related Programming Manual
Summary
The WRITEEDITP procedure accepts a line in EDIT packed line format and writes it to the specified
file.
WRITEEDITP is an IOEdit procedure and can only be used with files that have been opened by
OPENEDIT or OPENEDIT_.
Syntax for C Programmers
#include <cextdecs(WRITEEDITP)>
short WRITEEDITP ( short filenum
,[ __int32_t record-number ]
,const char *packed-line
,short packed-length );
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.
Syntax for TAL Programmers
error := WRITEEDITP ( filenum ! i
,[ record-number ] ! i
,packed-line ! i
,packed-length ); ! i
Parameters
filenum
input
INT:value
specifies the file number of the open file to which the line is to be written.
record-number
input
INT(32):value
if present, specifies the record number of the line to be written. If record-number:
is greater than or equal to 0, it specifies 1000 times the EDIT line number of the line to
be written.
is -1, the line is written at the beginning of the file.
1502 Guardian Procedure Calls (W-Z)