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>
15 #include <sys/types.h>
20 * returns 24-bit checksum of bytes in file
33 while ((ch = getc(f)) != EOF) {
34 sum = (sum + ch) & ((1<<24)-1);