title: Convert Bytes to Int / uint in C
body: <p>I have a unsigned char array[248]; filled with bytes. Like 2F AF FF 00 EB AB CD EF .....
  This Array is my Byte Stream which I store my Data from the UART (RS232) as a Buffer.</p>
  
  <p>Now I want to convert the bytes back to my uint16's and int32's.</p>
  
  <p>In C# I used the BitConverter Class to do this. e.g:</p>
  
  <pre><code>byte[] Array = { 0A, AB, CD, 25 };
  int myint1 = BitConverter.ToInt32(bytes, 0);
  int myint2 = BitConverter.ToInt32(bytes, 4);
  int myint3 = BitConverter.ToInt32(bytes, 8);
  int myint4 = BitConverter.ToInt32(bytes, 12);
  //...
  enter code here
  Console.WriteLine("int: {0}", myint1); //output Data...
  </code></pre>
  
  <p>Is there a similiar Function in C ?  (no .net , I use the KEIL compiler because code is running on a microcontroller) </p>
  
  <p>With Regards
  Sam</p>