My aim is to communication of two processes through popen.
Here my two process are matrix_sum.c (for addition of two matrices)and display_format.c(display formatting)
Just below is my main programme(programme by popen).
In Main.c i am trying to read matrix_sum.c output that i able to read through popen in buffer. Then i am trying to send that output to display_format.c programme but it is not going. So it is not printing any thing.
Note:display_format and matrix_sum are my executable file corresponding to .c file
First, you need to check for errors when functions return -- especially popen(). It may return NULL, and because your code doesn't check for it, your program will crash in the case it returns NULL.
Your display_format program doesn't read standard-in, which is where your main program is writing.
Have you tried running the programs by themselves to see if they work?