arm-linux

http://armboard.taobao.com/

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2010年9月25日

摘要: 有4个函数用于字节序的转换。分别针对2字节和4字节。单个字节自然没有字节序的问题。htonl(3) - Linux man pageNamehtonl, htons, ntohl, ntohs - convert values between host and network byte orderSynopsis#include <arpa/inet.h>uint32_t htonl(uint32_t hostlong);uint16_t htons(uint16_t hostshort);uint32_t ntohl(uint32_t netlong);uint16_t ntoh 阅读全文
posted @ 2010-09-25 17:47 arm-linux 阅读(367) 评论(0) 推荐(0) 编辑