Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!rpi!batcomputer!cornell!uw-beaver!sumax!ole!ray From: ray@ole.UUCP (Ray Berry) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: which archiver/compresser and encoder/decoder to use? Summary: geez- useful info Message-ID: <1524@ole.UUCP> Date: 21 Feb 90 23:32:35 GMT References: <36517@iuvax.cs.indiana.edu> <32123@shemp.CS.UCLA.EDU> Organization: Seattle Silicon Corp., Bellevue, WA. Lines: 27 In article <32123@shemp.CS.UCLA.EDU> wales@CS.UCLA.EDU (Rich Wales) writes: -- XXENCODE uses the following function -- #define ENC(c) ( set[ (c) & 077 ] ) static char set[] = "+-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; Except for the character set used, the two programs are identical. Kudos to Rich for contributing useful data. Similarly, static unsigned char xx[] = { 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,0,255,1,255,255,2,3,4,5,6,7,8, 9,10,11,255,255,255,255,255,255,255,12,13,14,15,16,17,18,19,20,21, 22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,255,255,255,255,255, 255,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58, 59,60,61,62,63,255,255,255,255,255}; /* array 'xx' has 128 members */ #define DEC(c) xx[(c)&127] would seem to transform uudecode into xxdecode. I offer this not as a profound intellectual divination, but simply for those too lazy to type. -- Ray Berry kb7ht uucp: ...ole!ray CIS: 73407,3152 /* "inquire within" */ Seattle Silicon Corp. 3075 112th Ave NE. Bellevue WA 98004 (206) 828-4422