Mail Archives: djgpp/1997/06/07/06:50:44
George Foot (mert0407 AT sable DOT ox DOT ac DOT uk) wrote:
> Kappas Ioannis (giannisk AT delta DOT edu DOT gr) wrote:
> : Why when I press the Greek character Omega (ascii 224) in Rhide does not appear
> : on the screen? Can anybody help me please?
> Robert Hoehne posted the reason for this; can I point out that for now you
> could escape it in character or string constants:
> printf("Character 224: \224\n");
> This is not a special feature of printf; it works in any string constant
> by inserting the specified character number.
> Incidentally, does anyone know how to follow the above character with a
> number? An obvious hack is to write the number as an ASCII code as well,
> but this is a bit unpleasant.
Why not do this: (btw, I don't think \224 is correct above, I know you
can put octal and hex but I don't think decimal)
printf("Character followed by number: %c5.\n",224);
The integer 224 gets cast properly into a character and the display is as
expected.
--
Jason Daniels -- bd733 AT rgfn DOT epcc DOT edu
---> BELIEVE THE LIE <---
Linux: The choice of a GNU generation.
Winblows 95: The world's best-selling computer virus.
- Raw text -