![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Demo
syli哈哈
这个作者很懒,什么都没留下…
展开
-
scandir使用示例
cat scandir.c#include<stdio.h>#include<stdlib.h>#include<dirent.h>int main(){ char *str = "./"; char *dir_name; int n; struct dirent **entries = NULL; asprintf(&dir_name, "%s", str);原创 2022-05-31 20:01:18 · 277 阅读 · 0 评论 -
dlopen函数使用示例
cat dlopen.c#include <stdio.h>#include <dlfcn.h>int main(int argc, char *argv){ int index = -1; void *handle; int (*get_index)(int); int ret = -1; // 获取handle handle = dlopen("./liba.so", RTLD_NOW原创 2022-05-31 19:55:01 · 1099 阅读 · 0 评论 -
C语言解析文件内容,获取key、value
简单的C语言解析文件中的关键key和value原创 2022-05-31 19:47:09 · 1224 阅读 · 0 评论