Checksum v1.2 (C implementation) CRC 16-bit checksum Author: Bhuvanesh Bhatt (bbhatt1@towson.edu) Platforms: TI-89 and TI-92 Plus Last updated: October 7, 2001 Syntax: Checksum(filename) or Checksum({file1,file2,...}) Example: If you have a file named "mmlexp" in the "mathml" folder, do Checksum("mathml\mmlexp") The program returns {filename,checksum,length} for each file you specify. The result will thus be a matrix (list of lists). 'length' is the length of the actual content of the file (generally, this is the total size minus 2, but for TEXT files, it is the length of the text). The checksum can be used to check the integrity of a file (i.e., to make sure it has not changed). Note that archiving a file can change its checksum for some file types, so if you are comparing two files, make sure they are both archived. This program opens TEXT variables in text mode, and other variables in binary mode. From the TIGCC documentation: "When a file is opened in 'text' mode, it is assumed to be a TEXT variable. On opening for reading, the file pointer will be set to the first character in the first text line (assuming that it IS a text variable). When a file is opened in 'binary' mode, nothing is assumed about the structure of the file. It can be a variable of any type." Dedication: This program, while not related, is dedicated to the memory of the many innocent victims of the September 11th, 2001 terrorist attacks. What's new: Removed "mode" option (I don't think anyone would open non-TEXT variables as text) Disclaimer: Although I have tested several files with this program before releasing it, I cannot guarantee that it will not hang or crash. If it does hang or crash, reset the calc: [2nd][LOCK][ON] on the TI-92 Plus [2nd][LEFT][RIGHT][ON] on the TI-89 If this doesn't reset the calculator, take out a battery, then press and hold [(-)][)] while you insert the battery. I am not responsible for any damage to your calculator.