03 2021 档案

摘要:#include<glib.h> static void test_function(gpointer data, gpointer user_data) { int i; i = GPOINTER_TO_INT(data); g_print("test function %d\n",i); } i 阅读全文
posted @ 2021-03-29 15:00 阿C 阅读(170) 评论(0) 推荐(0) 编辑
摘要:glibc和libc都是Linux下的C函数库:libc是Linux下的ANSI C函数库,glibc是Linux下的GUN C函数库。glib是用C写的一些工具,即C的工具库,和libc/glibc没有关系。GLib是一个跨平台的、用C语言编写的五个底层库的集合,为GNOME所使用。 GLib起初 阅读全文
posted @ 2021-03-29 09:31 阿C 阅读(5630) 评论(0) 推荐(2) 编辑
摘要:原文地址:http://blog.chinaunix.net/uid-17188120-id-2820866.html 1.通过已经连接的socket文件获取 int getpeermac( int sockfd, char *buf ) { int ret =0; struct arpreq ar 阅读全文
posted @ 2021-03-01 15:31 阿C 阅读(1451) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示