Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (D-E)
Guardian Procedure Calls Reference Manual522629-013
4-54
DELETEEDIT Procedure
DELETEEDIT Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Example
Related Programming Manual
Summary
The DELETEEDIT procedure deletes from an EDIT file all lines that have line numbers
in a specified range. Upon completion, the current record number is set to the highest
line number in the file that is lower than the deleted range, or to -1 if there is no such
line.
DELETEEDIT is an IOEdit procedure and can be used only with files that have been
opened by OPENEDIT or OPENEDIT_.
Syntax for C Programmers
CEXTDECS (via 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.
filenum input
INT:value
#include <cextdecs(DELETEEDIT)>
short DELETEEDIT ( short filenum
,__int32_t first
,__int32_t last );
error := DELETEEDIT ( filenum ! i
,first ! i
,last ); ! i