【发布时间】:2014-04-28 09:45:33
【问题描述】:
警告:传递“memcpy”的参数 2 使指针从整数不进行强制转换[默认启用]
uint8 InterruptLatency;
char buf[256];
int kernelinterrupt time()
{
fscanf(fp, "%"SCNu8"\n", &InterruptLatency); // I am reading the data from kernel which is not shown here
memcpy(buf, InterruptLatency, sizeof(InterruptLatency)); // warning here as above
// after storing it in buffer I am sending the data from but to another layer
}
【问题讨论】: