On Tue, 31 Jan 2012 11:21:02 -0500, Sean Conner wrote
A friend recently raised an issue with some code I
wrote (a hex dump
routine) saying it depended upon ASCII and thus, would break on non-ASCII
I assume the problem is the letters 'A' through 'F'? Standard C does not
require
them to be contiguous or in order. (They are in EBCDIC, though.) C does require
'0' through '9' to be contiguous and in order.
So now I'm wondering---besides Baudot, 6-bit BCD
and EBCDIC, is
there any other encoding scheme used? And of Baudot, 6-bit BCD and
EBCDIC, are there any systems using those encoding schemes *AND* have
a C compiler available?
Standard C requires both upper and lower case to be available, which rules out a
few early codes. There have been codes that interleave upper and lower case
(e.g. AaBbCc...) but I doubt any survive in systems that provide C.
--
Kevin Schoedel <schoedel at kw.igs.net> VA3TCS