luhn_test, a C code which calls luhn() to demonstrate the calculation and use of the Luhn check digit for error detection.
The computer code and data files described and made available on this web page are distributed under the MIT license
luhn, a C code which computes the Luhn check digit for a string, and can validate a string.