I need to get the EBCDIC value of a character in C. I don't know how. Do I have to get the ASCII value first then get the EBCDIC value from there? Thanks anyone
相关问题
- Multiple sockets for clients to connect to
- What is the best way to do a search in a large fil
- glDrawElements only draws half a quad
- Index of single bit in long integer (in C) [duplic
- Equivalent of std::pair in C
If you're on a system that uses EBCDIC as the character encoding, you already have it:
If your environment is an ASCII one and you simply want the EBCDIC code point, you can just use a lookup table built from both tables, like:
A lookup tables for a system using 8-bit ASCII characters to give you the EBCDIC code points would be something like: