Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (W-Z)
Guardian Procedure Calls Reference Manual522629-013
16-19
WRITEEDITP Procedure
WRITEEDITP Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
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
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
Parameters
error returned value
INT
returns a file-system error number indicating the outcome of the operation.
Possible values include:
10 File already includes a line with the specified record number.
21 Invalid length specified in the
packed-length parameter.
#include <cextdecs(WRITEEDITP)>
short WRITEEDITP ( short filenum
,[ __int32_t record-number ]
,const char *packed-line
,short packed-length );
error := WRITEEDITP ( filenum ! i
,[ record-number ] ! i
,packed-line ! i
,packed-length ); ! i