Steffen Nurpmeso <steffen(a)sdaoden.eu> wrote:
|jnc(a)mercury.lcs.mit.edu (Noel Chiappa) wrote:
||> From: Michael Kjorling
...
|You xor it via toupper(X)^0x40, yes of course. My code is right,
To be exact, it is
c = upperconv(c2) ^ 0x40;
if((ui8_t)c > 0x1F && c != 0x7F){ /* ASCII C0: 0..1F, 7F */
and converts from \cX notation to the actual control character.
That is, we do test the result in advance, which i wanted to add.
Ciao.
--steffen