TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Neil Heller
from: Jasen Betts
date: 2003-03-26 07:03:42
subject: portability

Hi Neil.

24-Mar-03 13:59:04, Neil Heller wrote to Jasen Betts

 NH> It just dawned on me (after reading Mr. McBrine's post) that if
 NH> one were to use only decimal numerics and English alphas
 NH> converting from ASCII to EBCIDIC or vice versa would be really
 NH> quick (as in table driven, no decisions).

yeah,  something like

  *(char_pointeer++) = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"[digit]

would compile and work fine on both EBCDIC and ASCII/UTF systems.
also it could possibly be extended for base64 encoding etc...

 -=> Bye <=-

---
* Origin: Dogs come when you call, cats have answering machines (3:640/1042)
SEEN-BY: 633/267 270
@PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.