内核变量:
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 中断延迟中?
最佳答案
使用strcpy复制字符串。运算符 =
不适用于字符串。
关于c - C程序中如何存储变量值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23336896/