C库
weixin_41666796
这个作者很懒,什么都没留下…
展开
-
linux-pcap 抓包程序框架
https://www.cnblogs.com/newjiang/p/6006826.html原创 2023-01-09 10:13:31 · 402 阅读 · 0 评论 -
使用CJSon进行对象的嵌套封装
https://www.cnblogs.com/mlrs815/articles/11839765.html原创 2021-11-22 16:27:12 · 173 阅读 · 0 评论 -
C 库函数 - realloc()
https://www.runoob.com/cprogramming/c-function-realloc.html原创 2021-09-27 09:36:16 · 74 阅读 · 0 评论 -
errno strerror
code error strerrorEPERM 1 操作不允许(Operation not permitted)ENOENT 2 没有文件或目录(No such file or directory)ESRCH 3 没有这个进程(No such process)EINTR 4 系统中断(Interrupted function call)EIO 5 输入输出错误(Input/原创 2021-06-25 09:20:38 · 85 阅读 · 0 评论 -
C 语言中 setjmp 和 longjmp
https://www.cnblogs.com/hazir/p/c_setjmp_longjmp.html原创 2021-06-22 16:36:28 · 55 阅读 · 0 评论 -
Centos安装libpcap
yum install libpcapyum install libpcap-develtest.c#include <stdio.h>#include <stdlib.h>#include <pcap.h>int current_pkt = 0;/*the data_callback running when packet have captured*//*user参数传递了用户自定义一些数据,是pcap_loop的最后一个参数,进而传递给回调函原创 2021-06-19 15:55:47 · 2519 阅读 · 0 评论 -
Linux下的I/O复用与epoll详解
https://www.cnblogs.com/lojunren/p/3856290.html原创 2021-06-07 14:56:40 · 57 阅读 · 0 评论 -
epoll经典代码示例
https://blog.csdn.net/s2603898260/article/details/106821040原创 2021-06-07 14:22:32 · 137 阅读 · 0 评论 -
ip地址掩码比较
#include<stdio.h>#include<stdlib.h>#include<math.h>#include <arpa/inet.h>int bit_memcmp (uint8_t * pbySrc, uint8_t * pbyDest, int byLen){if(byLen==0){return 0;}if(pbySrc==NULL || pbyDest==NULL){ return 1;}uint8_t *原创 2021-02-08 09:38:38 · 197 阅读 · 0 评论 -
cidr
#include<stdio.h>#include<stdlib.h>#include<math.h>#include <arpa/inet.h>int main(int argc,char *argv[]){char str_ip[40]={0};int ip1,ip2,ip3,ip4;unsigned int mask = 0;unsigned int mask_value = 0;unsigned int ip_value = 0;原创 2021-02-08 09:37:53 · 74 阅读 · 0 评论 -
Linux TCP server和client测试源码,C语言
https://blog.csdn.net/libaineu2004/article/details/79128878原创 2020-08-29 22:36:58 · 244 阅读 · 0 评论 -
Linux下编译动态库及使用
Linux下编译动态库及使用:https://blog.csdn.net/u013625451/article/details/78856127error while loading shared libraries错误的原因及解決方法:https://blog.csdn.net/vitaminc4/article/details/78707198vim hello.c#include<stdio.h>int hello_print(void){ printf("hel原创 2020-08-04 14:16:13 · 112 阅读 · 0 评论 -
Linux内核中位图的使用
https://blog.csdn.net/zahuopuboss/article/details/9030271原创 2020-06-23 08:27:34 · 227 阅读 · 0 评论 -
C语言配置文件解析库——iniparser
https://www.jianshu.com/p/b8332fcf31a1原创 2020-06-23 08:26:06 · 202 阅读 · 0 评论