如何使用c获取系统的ipaddress [英] How to get the ipaddress of the system by using c
本文介绍了如何使用c获取系统的ipaddress的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用
获取系统的IP地址.
c
how to get the ipaddress of the system.. using
c
推荐答案
以下是解决此问题的示例代码: ^ ] .
您被Google禁止了吗? :-)
—SA
Here is the sample code solving this problem: http://stackoverflow.com/questions/212528/linux-c-get-the-ip-address-of-local-computer[^].
Have you been banned by Google? :-)
—SA
使用gethostname函数可以获得IP地址...
using the gethostname function you can get the ip address...
这篇关于如何使用c获取系统的ipaddress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文