version 1.13, 2001/04/13 01:04:19 |
version 1.14, 2001/05/17 01:02:17 |
Line 588 ch_end(EditLine *el) |
|
Line 588 ch_end(EditLine *el) |
|
public int |
public int |
el_insertstr(EditLine *el, const char *s) |
el_insertstr(EditLine *el, const char *s) |
{ |
{ |
int len; |
size_t len; |
|
|
if ((len = strlen(s)) == 0) |
if ((len = strlen(s)) == 0) |
return (-1); |
return (-1); |
Line 597 el_insertstr(EditLine *el, const char *s |
|
Line 597 el_insertstr(EditLine *el, const char *s |
|
return (-1); |
return (-1); |
} |
} |
|
|
c_insert(el, len); |
c_insert(el, (int)len); |
while (*s) |
while (*s) |
*el->el_line.cursor++ = *s++; |
*el->el_line.cursor++ = *s++; |
return (0); |
return (0); |