title: How to Determine Whether C Input is an 8 bit Binary Number
body: <p>I'm writing a program that will mess around with converting binary values to hex and vice versa. </p>
  
  <p>The user should enter a value which will be stored in an int variable. I need to determine whether or not this user input is an eight-bit binary number like 10010010, 11110000, 10101010, etc. </p>
  
  <p>I've already written a function to determine how many characters the user enters, but I'm not finding much on how to make sure the user's input is either a 1 or a 0. </p>
  
  <p>Is this just a simple solution that I'm not seeing? </p>