Guardian Procedure Calls Reference Manual

PACKEDIT Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Related Programming Manual
Summary
The PACKEDIT procedure converts a line image from unpacked format into EDIT packed line format.
The input value is a text string that can include sequences of blank characters; the returned value
is the same text in packed format with blank compression codes.
PACKEDIT is an IOEdit procedure and is intended for use with files that have been opened by
OPENEDIT or OPENEDIT_.
Syntax for C Programmers
#include <cextdecs(PACKEDIT)>
void PACKEDIT ( char *unpacked-line
,short unpacked-length
,char *packed-line
,short packed-limit
,short *packed-length
,[ short full-length ] );
Syntax for TAL Programmers
CALL PACKEDIT ( unpacked-line ! i
,unpacked-length ! i
,packed-line ! o
,packed-limit ! i
,packed-length ! o
,[ full-length ] ); ! i
Parameters
unpacked-line
input
STRING .EXT:ref:*
is a string array that contains the line in unpacked format that is to be converted. The length
of unpacked-line is specified by the unpacked-length parameter.
unpacked-length
input
INT:value
specifies the length in bytes of unpacked-line.
packed-line
output
STRING .EXT:ref:*
is a string array that contains the line in packed format that is the outcome of the conversion.
The length of the packed-line is returned in the packed-length parameter.
932 Guardian Procedure Calls (P)