title: copying a short int to a char array
body: <p>I have a short integer variable called s_int that holds value = 2</p>
  
  <pre><code>unsighed short s_int = 2;
  </code></pre>
  
  <p>I want to copy this number to a char array to the first and second position of a char array.</p>
  
  <p>Let's say we have <code>char buffer[10];</code>. We want the two bytes of <code>s_int</code> to be copied at <code>buffer[0]</code> and <code>buffer[1]</code>.</p>
  
  <p>How can I do it?</p>