static int lis_rivit(int jj,long kpl) { char x[LLENGTH]; int m; putsaa(); PR_EBLD; LOCATE(r3+2,1); if (kpl>(long)r2) { ei_tilaa(); return(-1); } m=spec_find("INSERT",x,LLENGTH); // 20.7.2006 if (m<0 || (m>=0 && atoi(x)==0) ) { sprintf(x,"newalert"); sur_play_sound(x); sprintf(x,"Not enough empty lines. Insert space for %ld lines (Y/N) ?",kpl); LOCATE(r3+2,strlen(x)+2); m=nextch(x); if (m!='y' && m!='Y') return(-1); PR_ENRM; } return(insert_lines(jj,(int)kpl)); }
int insert_lines_file(t_hs path, t_glist_hs lines) { if (file_creator(path) < 0) return (-1); if (insert_lines(path, lines) == -1) return (-1); return (0); }