struct FILE_UPC_RECORD
{
char UPC[FILE_UPC_KEY_SIZE];// packed up to 16 digits right justified and zero filled
// possibilities are:
// 1. 12-digit UPC w/2 leading 0's
// 2. 13-digit EAN w/1 leading 0
// 3. 14-digit EAN
char SKU[FILE_ITEM_KEY_SIZE]; // packed, 0000ssssssssssss
};
Where FILE_UPC_KEY_SIZE & FILE_ITEM_KEY_SIZE = 8. Is packed value equivalent to Hex value? How do i store '0123456789012' equivaent decimal calue in the UPC & SKU array? Thanks for all your help.
You asked "How do i ...", here's some example code with comments