网络字节序是大端 参考: htonl、htons、ntohl、ntohs函数实现 判断是大端还是小端 小端时,(ENDIANNESS==‘l’) static union { char c[4]; unsigned long mylong;