upc_code, a C code which computes the check digit associated with a uniform product code (UPC), or reports whether a 12-digit UPC is valid.
The information on this web page is distributed under the MIT license.
upc_code is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.
bank_code, a C code which computes the check digit associated with a US Bank Routing Number check digit, reports whether a 9-digit code is valid.
isbn10_code, a C code which determines the check digit for a 10 digit International Standard Book Number (ISBN10) or reports whether a given ISBN10 is valid.
luhn_code, a C code which computes the Luhn check digit for a string, and validates a string.