upc_test, a C++ code which calls upc(), which computes the check digit associated with a uniform product code (UPC), or reports whether a 12-digit UPC is actually valid.


The computer code and data files made available on this web page are distributed under the GNU LGPL license.

Related Data and Programs:

upc, a C++ code which determines the check digit for a Uniform product Code (UPC) or reports whether a given UPC is valid.

Source Code:

Last revised on 10 April 2020.