内核变量:
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中Interrup延迟?
使用strcpy复制字符串。运算符=
不适用于字符串。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句