Re: how to macro define these "ESC" charset like "\n" and compare
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Re: how to macro define these "ESC" charset like "\n" and compare




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: how to macro define these "ESC" charset like "\n" and compare   
Lew Pitcher


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-20-06 06:24 PM

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


key9 wrote:
> Hi all
>
> I want to use
>
> #define KEY_RETU "\n"
> #define KEY_BKS  "\b"

No, you don't. You've already discovered why.

> and use
>
> int ch_;
>
>      switch(ch_){
>      case KEY_RETU :
[snip]
> so how to define it?


Try

#define KEY_RETU '\n'
..
int ch;
switch(ch)
{
case KEY_RETU:
..

HTH

- --
Lew Pitcher

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32) - WinPT 0.11.12

 iD8DBQFEmDjZagVFX4UWr64RAjIsAKDAEVQoLrUf
rf18gZ6T9DTHBVllKgCgnDTY
Rp9LYXGGDURpAOvmKLAFmXk=
=85fO
-----END PGP SIGNATURE-----






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:46 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register