HW08 decoder hone in c