摘要: 今天在调试程序遇到一个段错误。而检查程序逻辑没有可能产生错误可能性。最终通过google找到了该问题的愿意。以下是转来的:发现出错在 inet_ntoa 那一行。查看了 inet_ntoa 的帮助,没有发现什么特别的地方。试着打开编译的warning开关看看有没有什么发现:[shengkui@uranus ~]$ gcc -g -o getaddr getaddr.c -Wallgetaddr.c: In function 'get_host_ip':getaddr.c:26: warning: implicit declaration of function 'ine 阅读全文
posted @ 2012-03-08 14:13 戴安澜式编程 阅读(1112) 评论(0) 推荐(0) 编辑