C语言
学习和工作中遇到的C语言知识点
zzy570384336
这个作者很懒,什么都没留下…
展开
-
MIPI调试
记录遇到的mipi相关问题,及解决方法。原创 2023-10-26 17:12:17 · 120 阅读 · 0 评论 -
gpio记录
uboot使用gpio。原创 2023-10-19 17:32:09 · 101 阅读 · 0 评论 -
网口phy读写寄存器
【代码】网口phy读写寄存器。原创 2023-06-06 09:29:11 · 632 阅读 · 0 评论 -
C语言 const关键字修饰的指针类型变量
C语言 const关键字修饰指针变量原创 2022-09-22 20:00:00 · 309 阅读 · 0 评论 -
记录C语言常用宏定义
记录开发过程中常用到的C语言宏定义原创 2022-09-22 09:42:37 · 197 阅读 · 0 评论 -
Linux select函数
select会被信号量中断,比如SIGINT#include <stdio.h>#include <fcntl.h>#include <signal.h>#include <sys/time.h>int s_runflag = 1;void sig_int(int sig){ printf("signal int[%d]\n", sig);}void sig_quit(int sig){ printf("signal原创 2021-12-14 21:00:00 · 1949 阅读 · 0 评论 -
C语言:长度为0的数组
概述长度为0的数组在标准c和c++中是不合法的,但是在gcc中是可行的。长度为0数组它的最典型的用法就是位于结构体中的最后一项。使用方式如下面的例子,分别使用长度为0的数组和指针声明结构体,实现可变长度的数组功能:#include <stdio.h>#include <stdlib.h>struct test1{ int a; int b[0];};struct test2{ int a; int *b;};struct原创 2021-10-12 20:00:00 · 464 阅读 · 0 评论