Simple hex viewer in C