Hi Piotr, On 12/26/12 11:39, Piotr Caban wrote: > if(c1 != c2) > break; > - }while(c1 && c1==c2); > + }while(--count && c1 && c1==c2); This was already present in the code, but while you're at this you could remove duplicated char comparison in loop body and expression. Cheers, Jacek