int checksum(int *where, int count)
{
    int sum;
    sum = 0;
    while (count--) {
      sum += *where++;
    }
    return sum;
}