C code for barcode scanner / recipe application