I'm very worried. I have an assignment that is due in 3 weeks, and also tute exercises which I can't seem to understand and work out.
Okay, the question:
The parent process will convert the command arguments into integer values using atoi() and store them into an integer array which you will create using malloc() ONLY and is to be a local variable declared in main(). The parent process will then send the values of the array to Process B by writing to pipe1's output stream.
My question here is when i pass it through the pipe to Process B the output is always incorrect, gives me some rubbish. The examples which I've found also always pass string thru the pipe. Can I pass the pointer of the array to Process B and ask Process B to read the input from there?
I don't know why I find this so difficult to understand and have been looking around the internet for notes or examples to ponder on, but seems like all the examples are passing strings thru pipes.
Really really appreciate any sort of help here.