会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
MoonXu
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
61
下一页
2024年11月12日
libubox库uloop的使用
摘要: 1. 定时器使用 #include <stdio.h>#include <libubox/uloop.h> void my_timer_callback(struct uloop_timeout *timeout) { printf("Timer trigger.\n"); uloop_timeou
阅读全文
posted @ 2024-11-12 11:29 MoonXu
阅读(320)
评论(0)
推荐(0)
2024年8月12日
printf以前不知道的使用方式
摘要: #include <stdio.h> int main(){ char *p[] = {"asdf"}; printf(p[0]); char *m = "hello"; printf(m);}
阅读全文
posted @ 2024-08-12 16:40 MoonXu
阅读(10)
评论(0)
推荐(0)
2024年1月30日
linux command
摘要: 1 find . -mmin -10 -type d #最近10分钟内修改过的所有目录,-type d 表示只匹配目录
阅读全文
posted @ 2024-01-30 10:44 MoonXu
阅读(14)
评论(0)
推荐(0)
2024年1月11日
c笔记
摘要: 1 signal(SIGCHLD, SIG_DFL); ret = system(buf); signal(SIGCHLD, SIG_IGN); 默认情况下,父进程会接收到这个信号并调用wait()来回收子进程的资源。但如果父进程不希望等待子进程结束,它可以选择忽略SIGCHLD信号。这样,子进程将
阅读全文
posted @ 2024-01-11 10:41 MoonXu
阅读(15)
评论(0)
推荐(0)
2023年11月29日
编译驱动报错/usr/bin/perl^M没有这样的文件
摘要: 把dos的换行符转换为linux格式即可 dos2unix file
阅读全文
posted @ 2023-11-29 15:52 MoonXu
阅读(14)
评论(0)
推荐(0)
2023年10月27日
win11激活
摘要: 编辑jihuo.bat,管理员权限运行 slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GXslmgr /skms kms.03k.orgslmgr /ato
阅读全文
posted @ 2023-10-27 22:25 MoonXu
阅读(132)
评论(0)
推荐(0)
2023年8月23日
修改linux终端提示符
摘要: PS1="# "
阅读全文
posted @ 2023-08-23 14:59 MoonXu
阅读(23)
评论(0)
推荐(0)
2023年7月26日
-Wl
摘要: 1、介绍-Wl后面的东西是作为参数传递给链接器ld的。比如: gcc -Wl,aaa,bbb,ccc 最后会被解释为: ld aaa bbb ccc 2、-Wl,-Map=xxx.txt 生成map文件如下会生成map文件mymap.txt。 gcc -Wl,-Map=mymap.txt -g ma
阅读全文
posted @ 2023-07-26 09:35 MoonXu
阅读(103)
评论(0)
推荐(0)
2023年7月25日
tar压缩不带路径
摘要: tar zcvf toolchain.tar.gz -C opt/cigtools/rtl_9607C/ msdk-4.8.5-mips-EB-3.18-g2.23-m32ut-170331_cmcc -C到指定的文件夹然后指定要压缩的文件 如果要压缩文件夹,-C指定的文件夹剥离1层,然后执行文件夹
阅读全文
posted @ 2023-07-25 17:15 MoonXu
阅读(360)
评论(0)
推荐(0)
2023年7月24日
makefile
摘要: 1 函数调用 $(<function> <arguments>)#或${<function> <arguments>} 2 wildcard函数调用 $(wildcard <PATTERN...>) #用于获取匹配该模式下的所有文件列表 $(wildcard *.cpp *.c) 3 patsubs
阅读全文
posted @ 2023-07-24 11:21 MoonXu
阅读(20)
评论(0)
推荐(0)
1
2
3
4
5
···
61
下一页
公告