Seppo Mustonen : Programming Survo in C

Functions in library SURVO.LIB

edwrite
Summary

int edwrite(x,j,pos)
char *x;           /* null-terminated string */
unsigned int j;    /* number of edit line */
int pos;           /* first position on edit line */
Description

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.

Return Value

There is no return value.

See Also

edread, output_line

Example

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 *
Applications

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.


Front page of Survo C libraries