G
gwowen
On 19.02.2012 06:53, Kaz Kylheku wrote:
And I don't get what is so hard about
length = (pkt_ptr[0] << 8) + pkt_ptr[1];
pkt_ptr += 2;
One piece of code is intended to demonstrate how smart the programmer
is.
One piece of code intended to be understood, debugged and maintained
by humans, though personally I'd prefer (pkt_ptr[0] * 256).