How to convert first two bytes of char[] from network byte order to host byte order?
<p>I have a char xyz[2];
I receive 2 octet numbers in network byte order in xyz[0] and xyz[1].How do i change this to host order.
How do i use ntohs to convert xyz. Please help.</p>
