/* Compute checksum, figure out how long the file */
cksum = 0;
while ((c = getc(file)) != EOF)
cksum += (unsigned char) c;
size = ftell(file);
rewind(file);
/* Compute checksum, figure out how long the file */
cksum = 0;
while ((c = getc(file)) != EOF)
cksum += (unsigned char) c;
size = ftell(file);
rewind(file);