delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/07/06:50:44

From: bd733 AT rgfn DOT epcc DOT edu (Jason M. Daniels)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Rhide and OMEGA
Date: 6 Jun 1997 16:41:43 GMT
Organization: The Rio Grande Free-Net, El Paso Community College, El Paso, TX
Lines: 30
Message-ID: <5n9ek7$7jt@news.epcc.edu>
References: <199706030946 DOT MAA25672 AT andromeda DOT delta DOT edu DOT gr> <5n8rha$ruk AT news DOT ox DOT ac DOT uk>
NNTP-Posting-Host: rgfn.epcc.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019