Luhn (aka mod 10) Algorithm. Entirely in C, using no strings.