home *** CD-ROM | disk | FTP | other *** search
/ back2roots/padua / padua.7z / padua / uucp / sendbatches.lzh / src / coder.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-14  |  258 b   |  9 lines

  1. char header[] = "Decode the following with bdecode\n";
  2. char codeset[] =
  3.     "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-";
  4.  
  5. #define ENCODE(c)    codeset[c]
  6.  
  7. extern short crctab[];
  8. #define CRC(crc, c)     crc = (crc >> 8) ^ crctab[(crc^c) & 0xff]
  9.