I need to take numbers from an array of char's. They are two bytes long. I have managed to do it but it looks really messy.
Of course the example doesn't show the bit which fills header, but its not empty.
Could you tell me if this is the best way of doing it or if theres a more readable way? ThanksCode:int bob; char header[200]; bob = *((unsigned short int*)(header + 15)); printf("Test: %d\n",bob);