i think



int i = 0;
while (a[i] && b[i] && b[i] == a[i])
i++;
if( a[i] == b[i])
printf("yess");
else