Guardian Programming Reference Summary for C
Functions Summary (R-Z)
Guardian Programming Reference Summary for C—522630-001
8-42
WRITEEDIT 
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 be used only with 
files that have been opened by OPENEDIT or OPENEDIT_.
error
record-number
WRITEEDITP 
Accepts a line in EDIT packed line format and writes it to the specified file. 
WRITEEDITP is an IOEdit procedure and can be used onlywith files that have been 
opened by OPENEDIT or OPENEDIT_.
#include <cextdecs(WRITEEDIT)>
short WRITEEDIT ( short filenum /* i */
 ,[ long record-number ] /* i */
 ,char *unpacked-line /* i */
 ,short unpacked-length /* i */
 ,[ short full-length ] /* i */
 ,[ long *new-record-number ] );/* o */
10 File already includes a line with the specified record number.
21 Specified record is too long to fit into EDIT packed line format. (The maximum 
is 255 bytes of packed text.)
45 All of the file’s possible extents are allocated and full. You can use 
EXTENDEDIT to increase the file’s extent size and call WRITEEDIT again.
>= 0 Specifies 1000 times the EDIT line number of the line to be written. 
-1 Specifies that the line is written at the beginning of the file.
-2 Specifies that the line is written at the end of the file.
-3 Specifies that the line is written to the line represented by the file’s current 
record number. 
#include <cextdecs(WRITEEDITP)>
short WRITEEDITP ( short filenum /* i */
 ,[ long record-number ] /* i */
 ,const char *packed-line /* i */
 ,short packed-length ); /* i */










