Seppo Mustonen : Programming Survo in C

Functions in library SURVO.LIB

edread
Summary

int edread(x,j)
char *x;       /* storage location for input string */
unsigned int j;              /* number of edit line */
Description

The edread function reads line j from the current edit field to x as a nullterminated string. x[0] will be the control character of the edit line and the length of x is ed1. Thus the terminating spaces are also in x. Space for x must be allocated before the edread call; it should be at least LLENGTH characters.

Return Value

There is no return value.

See Also

edwrite

Example

Assume that we have in the edit field:

    7 *
    8 *PRINT 11,20
    9 *
Then
char x[LLENGTH];
edread(x,8);
gives
x="*PRINT 11,20                           "
where strlen(x)=ed1 (width of the edit field + 1).


Front page of Survo C libraries