int edread(x,j)
char *x; /* storage location for input string */
unsigned int j; /* number of edit line */
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.
There is no return value.
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).