title: How do I convert a decimal integer into a single hexadecimal character? (C)
body: <p>I am trying to convert a decimal integer into hexadecimal. I've done a lot of searching online, and have found many ways to do this. However, every way I found converts to a string; for example, I can convert 100 into "64". That isn't what I need to do. I want to be able to convert 100 into '0x64', which is an entirely different matter. For some reason, I suspect the answer to be extremely simple, but I can't seem to find/remember it. I'm writing in the C Programming Language, just to clarify. Any assistance or ideas would be much appreciated.</p>
  
  <p>Thanks,
  Hassan</p>