I need to pass a linked list (via unnamed pipe)that is created by the parent process between one child process to another child (created by the same parent). However I am not sure that it is proper to pass it by address of the head node or the complete structure or any other way.

Thanks for help....

It wont' work if you try to send the address of the head node or any other node.
The best way is to send the list data one by one through the pipe.

You can use some flag values to mark when you are done with sending the values.

If you send the address of a node and try to get the value, it won't work because then you are trying to access the memory allocated to another process.

Hope this helps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.