Hi, would anyone please tell me how can download the extended ascii table to my Debian linux? thanks
Hi, would anyone please tell me how can download the extended ascii table to my Debian linux? thanks
http://www.asciitable.com/
What exactly are you after?
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
download an extended ascii table???
uh--
just run this:
and you can pipe it however you want.Code:#include <stdio.h> int main() { int j; printf("+---+--------+\n| C | Code |\n+---+--------+\n"); for(j=0;j<256;j++) printf("| %c | %6d |\n+---+--------+\n",(char)j,j); return 0; }
there's your ascii table for whatever system you're on...
-LC
Asking the right question is sometimes more important than knowing the answer.
Please read the FAQ
C Reference Card (A MUST!)
Pointers and Memory
The Essentials
CString lib
it's just that when I try to do printf("%c", 128 or above) my system doesn't display the character.
what system?
I'm pretty sure it does display it, but its an escape sequence or something that you can't visibly see as a char.
BSD right?
-LC
Asking the right question is sometimes more important than knowing the answer.
Please read the FAQ
C Reference Card (A MUST!)
Pointers and Memory
The Essentials
CString lib
>I'm pretty sure it does display it, but its an escape sequence or something that you can't visibly see as a char.
That's why you add the following clause:
Code:if (!isprint(j)) printf("| %#x | %6d |\n+---+--------+\n",(char)j,j); else printf("| %c | %6d |\n+---+--------+\n",(char)j,j);
The information given in this message is known to work on FreeBSD 4.8 STABLE.
*The above statement is false if I was too lazy to test it.*
Please take note that I am not a technical writer, nor do I care to become one.
If someone finds a mistake, gleaming error or typo, do me a favor...bite me.
Don't assume that I'm ever entirely serious or entirely joking.
The system is Debian.
Is the extended ascii table something different than what you could view if you did
man ascii?