导航

上一页 1 ··· 6 7 8 9 10 11 12 13 下一页

2021年4月23日 #

LuCI

摘要: Luci Reference https://openwrt.org/docs/techref/luci Documentation https://github.com/openwrt/luci/wiki/Documentation API https://openwrt.github.io/lu 阅读全文

posted @ 2021-04-23 11:19 toughcactus 阅读(77) 评论(0) 推荐(0) 编辑

luci函数

摘要: luci.http.getenv getenv (name)Get the value of a certain HTTP environment variable or the environment table itself. Parameters name: Environment varia 阅读全文

posted @ 2021-04-23 10:51 toughcactus 阅读(130) 评论(0) 推荐(0) 编辑

action

摘要: <form action="URL"> 当提交表单时,发送表单数据给URL指向 的文件(处理输入) 阅读全文

posted @ 2021-04-23 10:30 toughcactus 阅读(74) 评论(0) 推荐(0) 编辑

2021年4月22日 #

gdb输出

摘要: /x 十六进制 /t 二进制 阅读全文

posted @ 2021-04-22 10:53 toughcactus 阅读(38) 评论(0) 推荐(0) 编辑

2021年4月21日 #

int和void *

摘要: 所以现在就有一个问题,编程时我们常用的是32位int,当编译使用的32位机器,void *可以强制转换为int用。 当void *作为参数时,机器变为64位,此时void *转换为long,long做参数不方便,但我们还是可以通过取地址解决。 当void *作为返回值时,机器变为64位,返回值一定不 阅读全文

posted @ 2021-04-21 14:41 toughcactus 阅读(406) 评论(0) 推荐(0) 编辑

函数返回值

摘要: 已知传参是拷贝。返回值也是拷贝。 现在已经不知道为什么这么写了。 拷贝的地址是函数里开辟的,再去读,读个鬼。 测试代码 #include <stdio.h> char *test() { char p[10] = "hello"; return p; } int main() { char *p = 阅读全文

posted @ 2021-04-21 11:57 toughcactus 阅读(32) 评论(0) 推荐(0) 编辑

Linux ctrl-s ctrl-q

摘要: 敲代码的时候顺手Ctrl-s,终端锁死。 Ctrl-q,解锁。 阅读全文

posted @ 2021-04-21 11:51 toughcactus 阅读(148) 评论(0) 推荐(0) 编辑

位运算

摘要: 1 << 5 -> 100000 现在flag 8位,第三位为1为彩色,为0为黑白 现在希望清除第三位 #define Bit_Color (1 << 2) #define Clear_Color ((~Bit_Color) & 0xFF) 对Bit_Color取非的结果是机器字长多少位,对多少位取 阅读全文

posted @ 2021-04-21 09:29 toughcactus 阅读(52) 评论(0) 推荐(0) 编辑

2021年4月20日 #

container_of

摘要: container_of(ptr,type,member) 我现在用这个函数就没有计算过。 ptr为给出的一个指针。 type为一个结构体类型。 member是结构体的一个成员。 ptr的值是该成员的地址。 container_of的返回值是指向该结构体的指针。 没看懂吧,我自己都不想看第二遍。 s 阅读全文

posted @ 2021-04-20 14:38 toughcactus 阅读(84) 评论(0) 推荐(0) 编辑

window上VirtualBox扩容虚拟机

摘要: 1.到vobxmanage目录,如C:\Program Files\Oracle\VirtualBox 2.执行命令如:vboxmanage modifyhd "D:\VirtualBox VMs\ubuntu\vbox-disk1.vdi" --resize 20480 即扩容到20G 自己做好备 阅读全文

posted @ 2021-04-20 14:15 toughcactus 阅读(75) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 12 13 下一页