Konrad wrote: > + c = _mbctoupper(_mbsnextc(s)); > + /* Note that I assume that the size of the character is unchanged */ > + if (c > 255) > + { > + *s++=(c>>8); > + c=c & 0xff; > + } > + *s++=c;
Tests might be in order... (Here's one possible interesting test case: http://blogs.msdn.com/b/michkap/archive/2009/08/11/9864576.aspx ) - Dan