【发布时间】:2014-04-28 09:07:46
【问题描述】:
内核变量:
s32 remainder;
s64 quotient ;
如何在 C 程序中读取上述变量值并将它们存储在下面的变量中?
uint32 InterruptLatency;
我正在从内核读取时间,它的类型为 s32 和 s64 为 1.3456;
如何在用户端程序上阅读这个??
uint32 InterruptLatency;
uint8 measurements[32];
char buf[256];
int kernelinterrupt time()
{
fscanf(fp, "%lu", &InterruptLatency); // I am reading the data from kernel which is not shown here
measurements[17] = InterrupLatency;
// after storing it in buffer I am sending the data from but to another layer
}
是否可以读取变量值(s64 和 s32)并将其存储在 uint32 中断延迟中??
【问题讨论】:
-
incompatible type C error? 的可能重复项
-
@unwind:这不是重复的,虽然它看起来非常相似,但问题是不同的!
标签: c arrays pointers interrupt scanf