Checksum in ANSI C.