/*I write c program that runs under unix,it creates a memory queue,I want to find a way to know the queue id before it's being created,then how can i write in this queue using another program.*/
Code:int main(int argc, char* argv[]) { int queue_id = msgget(IPC_PRIVATE, 0777); printf("queue id = '%d' .\n",queue_id); printf("IPC_PRIVATE = '%d' .\n",IPC_PRIVATE); return queue_id; }