int edwrite(x,j,pos)
char *x; /* null-terminated string */
unsigned int j; /* number of edit line */
int pos; /* first position on edit line */
The edwrite function writes the string x
on the line j
in the current edit
field from the column pos
onwards. If x
is longer than the edit line
length permits, the extra characters are not written.
There is no return value.
Assume that we have in the edit field:
7 *
8 *Result: _
9 *
Then
char x[]="123.456"
edwrite(x,8,9);
gives
7 *
8 *Result: 123.456
9 *
edwrite is the standard tool in writing results of edit operations in the edit field. In operations producing larger output both in the edit field and in output files, output_line is to be used instead of edwrite.