当前位置:网站首页>【C语言】结构体变量数据通过 void* 传入到函数中
【C语言】结构体变量数据通过 void* 传入到函数中
2022-08-05 05:39:00 【嵌入式职场】
目录
1、使用 const unsigned char *buff
1、使用 const unsigned char *buff
#include <stdio.h>
// 定义结构体
typedef struct {
unsigned int m;
unsigned int n;
unsigned char a;
unsigned char b;
unsigned char c;
unsigned char d;
}Peo;
// 接受函数
void func_1(const unsigned char *buff, unsigned int len)
{
// buff强转为 Peo 类型指针
Peo *peo_2 = (Peo*
边栏推荐
猜你喜欢
Nacos集群的搭建过程详解
八大排序之快速排序
DevOps process demo (practical record)
VSCode编写OpenCV
Chengyun Technology was invited to attend the 2022 Alibaba Cloud Partner Conference and won the "Gathering Strength and Going Far" Award
LeetCode练习及自己理解记录(1)
D45_Camera assembly Camera
Vim tutorial: vimtutor
农场游戏果园系统+牧场养殖系统+广告联盟模式流量主游戏小程序APP V1
sql server duplicate values are counted after
随机推荐
docker部署完mysql无法连接
numpy.random usage documentation
cs231n学习记录
花花省V5淘宝客APP源码无加密社交电商自营商城系统带抖音接口
摆脱极域软件的限制
DevOps-了解学习
MyCat安装
亚马逊美国站:马术头盔CPC认证标准要求
多用户商城多商户B2B2C拼团砍价秒杀支持小程序H5+APP全开源
前置++和后置++的区别
LeetCode练习及自己理解记录(1)
Pytorch分布式并行处理
DisabledDate date picker datePicker
LaTeX 图片加标题 文本分栏自动换行
input detailed file upload
The hook of the operation of the selenium module
el-autocomplete use
【FAQ】What is Canon CCAPI
Native JS takes you to understand the implementation and use of array methods
单片机原理与应用复习