int insstr(str)
int insnstr(str, n)
int winsstr(win, str)
int winsnstr(win, str, n)
int mvinsstr(y, x, str)
int mvinsnstr(y, x, str, n)
int mvwinsstr(win, y, x, str)
int mvwinsnstr(win, y, x, str, n)
These functions will insert str in the current line left from the cursor (as many characters as fit to the line). The characters on the right of the cursor are moved right and will be lost when the end of the line is reached. The cursor position is not changed.
y and x are the coordinates to which the cursor is moved before str will be inserted, n is the number of characters to insert (with n=0 the entire string is inserted).