input from barcode

The dataRead() function gets one value, which is then used to determine what to store in buffer.

Once dataRead() returns a SCAN_ENTER, it is the value in buffer that needs to be compared to values in a list. Since buffer is a char array, and is NULL terminated, use strcmp() to compare buffer to known strings.