Unify 2 bytes to Int
<p>I have a function that allows me to separate a INT value in 2 Bytes
(e.g: INT "123123" results in E0F3; <code>highByte= 0xF3</code> and <code>lowByte=0xE0</code>)</p>

<p>using this:</p>

<pre><code>void int2bytes(unsigned char dest[2],int val){
             int hByte=0;
             int lByte=0;

             hByte=val&amp;0XFF;
             lByte=val&gt;&gt;8;

             dest[0]= (char)hByte;
             dest[1]= (char)lByte;
            }
</code></pre>

<p>my question is:</p>

<p>How do I convert(unify) those 2 bytes to one INT equals to "123123"?</p>
