title: C Convert int in Hex and cut the last two digits
body: <p>I'm wiritng in C and have a problem with converting an integer.</p>
  
  <p>What I want to do is the following:</p>
  
  <p>I have an integer called: checksum.</p>
  
  <p>I want to convert this integer in hex format, then take only the two last digits and transform them back to an integer in dez format.</p>
  
  <p><strong>Example:</strong></p>
  
  <p>checksum = -864</p>
  
  <p>In Hex this would be: FFFFFFFFFFFFFCA0</p>
  
  <p>The two last digits are: A0</p>
  
  <p>And "A0" in dez format is: 160.</p>
  
  <p>How can I do this in C?</p>