空调系统呼叫和消息 [英] C System Calls and messages
本文介绍了空调系统呼叫和消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想传递一个消息与调用一个指针传递给一个系统调用。
I am trying to pass a pointer to a system call by passing a message with that call.
指针应该是一个int []。
The pointer should be to an int[].
然而,消息定义需要一个字符指针传递。我如何发送一个int指针?
However the message definition expects a char pointer to be passed. How can I send an int pointer?
int pidarray[j];
m.m1_p1 = pidarray;
是否有可能转换为指针类型?
Is it possible to convert the pointer types?
推荐答案
是否有可能转换为指针类型?
是的,这是可能的。例如:
Yes this is possible. e.g.:
(char*) intPointer
这篇关于空调系统呼叫和消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文