|
|
|
|
|
by detaro
2791 days ago
|
|
which is the same the submission says? Extract the data using a function that produces a value "mathematically" that's always correct for the host machine. His example uses multiplication instead of shifts like Pike, but that's a minor stylistic difference. |
|
Put another way, Pike is saying that libc should have implemented be16toh() like:
instead of how GNU libc implemented it: But that complaint doesn't affect programs that call be16toh().