??? 02/09/07 19:56 Read: times |
#132415 - correct Responding to: ???'s previous message |
Andy Neil said:
The BASIC initialises the checksum to ASC(MID$(NEMA$, 2, 1));
your 'C' initialises it to 0. The outcome may well be the same, but the 'C' vs BASIC comparison is compromised - and the purpose of this thread is the 'C' vs BASIC comparison, not the calculation of some checksum that nobody asked about! That's true, but I made the same comment/change to Charles' code. Anyway, come to think of it, your initialisation (and Charles') will run slightly faster than what I made of it, one less time to get through the loop. regards Patrick |