inet_ntop返回值错误

使用inet_ntop()或者inet_ntoa()函数时,提示返回值是int,而不是char*。当我加入头文件“arpa/inet.h”,返回值就正常了。

【Reference】
http://blog.csdn.net/weiyuefei/article/details/51455800

posted @ 2017-04-24 22:10  水煮海鲜  阅读(294)  评论(0编辑  收藏  举报