#include "common.h" const char digits[] = "!\"#$%&'()*+,-./01" "23456789:;<=>?@AB" "CDEFGHIJKLMNOPQRS" "TUVWXYZ[\\]^_`abcd" "efghijklmnopqrstu"; const char endmarker = 'x'; const char zdig = 'z'; unsigned long int Ceor = 0; unsigned long int Csum = 0; unsigned long int Crot = 0; void dochecksum(int c) { Ceor ^= c; Csum += c; Csum += 1; if (Crot & 0x80000000) { Crot <<= 1; Crot ++; } else { Crot <<= 1; } Crot = (Crot + c) & 0xffffffff; }