Checksums

From the limited data this is probably trivial.

int checksum (char * str)
{
  byte sum = 0 ;
  char ch ;
  while ((ch = *str++) != 0)
    sum -= ch ;
  return sum ;
}