Question: what library is ntohl in?
Answer: Implementation of C Standard Library Function ntohl() ntohl() takes a uint32_t value and returns it unchanged if the host architecture is network-byte-order (big-endian), otherwise the value is converted to host-byte-order.