《Linux函数调用手册》之___htonl将32位主机字符顺序转换成网络字符顺序
定义:
unsigned long int htonl(unsigned long int hostlong);
表头文件:
#include<netinet/in.h>
说明:
htonl()用来将参数指定的32位hostlong 转换成网络字符顺序。
返回值:
返回对应的网络字符顺序。
相关函数:
htons, ntohl, ntohs
示例:
返回顶部 | 《Linux函数调用大全》 | 《Linux命令大全》 | Linux专栏