I am reading 4 bytes in binary file and stored in some variable named as *tmpbuf.
i am printing this variable in decimal value like this.
But now what to do is i want to split 4 bytes into two and want to read those separately and saved in another variable. How to do this?
Ex:*tmpbuf=01 00 00 04; decimal value=16777220
*tmpbuf1=01 00; decimal value=256
*tmpbuf2=00 04 decimal value=4