OK so I have a char* variable, which contains the header for a particular packet. There are various fields in this packet but the header isn't split up into different variables. So my question is, how do I extract a hex number from this sequence of bits?
i.e. if header = 02C0001400F00000
and I need header[4-8] = 0014
so I can convert it into decimal 20 using strtol
Thanks for any help!