Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Ubuntu的以下功能的确切等价物是什么?
http://www.qnx.com/developers/docs/6.4.1/neutrino/lib_ref/e/endian_be16.html
你需要的是:
#include <endian.h> result_in_host_endianness = be16toh(my_big_endian_number)
见http://man7.org/linux/man-pages/man3/endian.3.html