I have some strings that come in over a REST interface that represent some network coordinates. The string looks something like:
02:00:00:00:00:07
Bits 5 - 0 represent tier 1
bits 13 - 6 represent tier 2
bits 19 - 14 represent tier 3.
How would I parse these out in C?
I've tried looking online, but I found it quite confusing.