I am working in ISO8583 format where i am getting length of message in a 2 byte binary format . I need to convert it into an integer using C . In C# this can be achieved by:
byte B1 = 0xFE;
byte B2 = 0xFC;
int r = (B1 << 8) | B2;
How we can do it in C. Please help
Thanks