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? 回答1: Is it possible to convert the pointer types? Yes this is possible. e.g.: (char*) intPointer 来源: https://stackoverflow.com/questions/34063927/c-system-calls-and-messages