On Sep 5, 5:26 pm, Chris Dollin <chris.dol...@hp.comwrote:Please don't quote signatures. I snipped Chris' for you.jt wrote:please check the below link..i want to print those symbols..hello everyone..,Well, presumably it's called a non-printable character because it
i'm using ubuntu 8.04 OS. I'm not able to output the non-printable
ascii chatacters.
for eg.
printf("%c",1); // nothing is outputted.....
doesn't have a printing representation.
What do you want to see if it's non-printable? Use `isprint` to
find out if its printable or not, then decide how you want to
display a non-printing character.
#include <ctype.h>
void printCharSomehow( unsigned char ch )
{
printf( (isprint( ch ) ? "'%c'" : "char(%d)"), ch );
}
http://didgood.com/programing/datath...scii-0-127.gif
You do what you want, you need to change your printing
charset to ASCII. Whether this is possible is specific
to your implementation, as are details about how to do
so. /Why/ you would ever need to do so is debatable.
--
Andrew Poelstra <ap*******@wpsoftware.com>
To email me, change .net to .com in the above address.