简体   繁体   中英

C System Calls and messages

I am trying to pass a pointer to a system call by passing a message with that call.

The pointer should be to an 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?

Is it possible to convert the pointer types?

Yes this is possible. eg:

(char*) intPointer

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM