C中->和.有什么区别
摘要:->是指针指向其成员的运算符.是结构体的成员运算符如:struct A{ int a; int b;};A *point = malloc(sizeof(struct A));point->a = 1;A object;object.a = 1;
阅读全文
posted @
2014-03-21 10:52
hh6plus
阅读(151)
推荐(0)
通过socket和ioctl实现本机IP查询
摘要:重点是明白结构体ifconf与ifreq的用法 #include #include #include #include #include #include #include #include #define BUFSIZE 128 int main(void) { ...
阅读全文
posted @
2014-03-20 15:21
hh6plus
阅读(304)
推荐(0)