Quelques autres erreurs :

char nom[17],mot[17]="livre",c,x,k,l[2];
....
strcpy(l,k);
....
while(1)
{ i++;
...
strcpy(l,k);