Лабораторная работа: Найти самое длинное общее слово двух заданных предложений
fprintf(f," Вторая строка:\n");
l2 = lev2;
do{
fseek(ff, l2, SEEK_SET);
fscanf(ff,"%s",input);
printf("%s ",input);
fprintf(f,"%s ",input);
l2= ftell(ff);
}while(l2 < prv2);
printf("\n\n");
fprintf(f,"\n\n");
getch();
//************************ алгоритм сравнения слов
fseek(ff, 0, SEEK_SET);
l1 = lev1;
//****************************************
b = 0;
p[0] = '\0';
//****************************************
k=0;
printf("********************************************\n");
fprintf(f,"********************************************\n");
do{
fseek(ff, l1, SEEK_SET);
fscanf(ff,"%s",buf);
l1 = ftell(ff);
l2 = lev2;
while ((cha(buf[strlen(buf)-1]) == 0)&&(strlen(buf) != 0)){
buf[strlen(buf)-1] = '\0';