MOVED: Diff function?

This topic has been moved to Programming Questions.

http://arduino.cc/forum/index.php?topic=116531.0