5 /* (c) Copyright 1988 by the Massachusetts Institute of Technology. */
6 /* For copying and distribution information, please see the file */
7 /* <mit-copyright.h>. */
10 static char *rcsid_checksum_c = "$Header$";
13 #include <mit-copyright.h>
19 * returns 24-bit checksum of bytes in file
32 while ((ch = getc(f)) != EOF) {
33 sum = (sum + ch) & ((1<<24)-1);