Article View: comp.protocols.ibm
Article #1081Re: SOS: C Routines for ASCII to EBCDIC Conversion and Vice-versa
From: Gary Heston
Date: Fri, 21 Jun 1991 12:57
Date: Fri, 21 Jun 1991 12:57
34 lines
2137 bytes
2137 bytes
In article <1991Jun19.190752.28034@ssdc.honeywell.com> satya@ssdc.honeywell.com (Satya Prabhakar) writes: >I am involved in developing the ISO/RDA protocol between CDC 920 >and IBM 3090. CDC 920 uses ASCII representation and the IBM >uses EBCDIC. I am looking for C routines that convert ASCII strings >into EBCDIC strings and vice-versa. We need these DESPERATELY and >asap. If you have some information re: these, please let me know >asap. I would REALLY appreciate your help. Well, let's see--this is a hard one, seeing as how it's a C programming problem, of course it's posted to comp.lang.c, isn't it? >Newsgroups: comp.protocols.ibm,comp.protocols.iso,comp.protocols.tcp-ip,comp.unix.questions Oops, guessed wrong on that one... Try building a 256 by 2 char array, initializing [x,0] with the EBCDIC code set and [x,1] with the ANSI (it hasn't been ASCII for many years) code set, so that you can use the character as the offset to find out what it converts to. Typing in the initialization strings are left as an exercise to the programmer. (You could do this with pointers, but that's a little more complicated, and you said you were in a hurry.) >Very many thanks in advance. Anytime. -- Gary Heston System Mismanager and technoflunky uunet!sci34hub!gary or My opinions, not theirs. SCI Systems, Inc. gary@sci34hub.sci.com I support drug testing. I believe every public official should be given a shot of sodium pentathol and ask "Which laws have you broken this week?".
Technical Details
Message-ID:
<1991Jun21.125710.9881@sci34hub.sci.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!crdgw1!uunet!sci34hub!garyReferences:
<1991Jun19.190752.28034@ssdc.honeywell.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!crdgw1!uunet!sci34hub!gary From: gary@sci34hub.sci.com (Gary Heston) Newsgroups: comp.protocols.ibm,comp.protocols.iso,comp.protocols.tcp-ip,comp.unix.questions Subject: Re: SOS: C Routines for ASCII to EBCDIC Conversion and Vice-versa Message-ID: <1991Jun21.125710.9881@sci34hub.sci.com> Date: 21 Jun 91 12:57:10 GMT References: <1991Jun19.190752.28034@ssdc.honeywell.com> Reply-To: gary@sci34hub.sci.com (Gary Heston) Organization: SCI Technology, Inc., Huntsville, Al. Lines: 34