align by common substring by pap

i,l,n;char a[999],b[999];main(j){for(;gets(b);l=printf("%*s%s\n",n+=i-j,"",memcpy(a,b,999)))for(i=0;a[i++]&&l;)for(j=0;b[j++]&&l;)l=strncmp(a+i,b+j,4);}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page