Re:Systemd is bad parsing
by LukeShu on Saturday October 27, 2018 @11:36AM
(#18316185)
Rob Pike is saying that your code should never care/check what the host byte order is; if you use the libc FOOtoh() functions, you aren't caring what the host byte order is, you're just converting something to it.
Put another way, Pike is saying that libc should have implemented be16toh() like:
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().