title: Storing hex value in C string?
body: <p>I have a string <code>"SOMETHING /\xff"</code> and I want to save the hex representation of <code>0xff</code> into a <code>char</code> buffer.  So I <code>strncpy</code> everything after the forward slash (<code>/</code>) into my buffer (let's call it <code>buff</code>). </p>
  
  <p>However, when I use the gdb command <code>print \x buff</code> to view the contents of <code>buff</code>, it doesn't show <code>0xff</code>.  Any ideas as to what could be wrong?  Is it possible that my forward slash is messing things up?</p>