This gets char array sent via pipe to a second process and prints it:
I want the data to go into 2D array (5x5), so it would look like:Code:int x; int pipe; char buf[PIPE_BUF]; while ((x=read(pipe, buf, PIPE_BUF))>0) write(fileno(stdout), buf, x);
How can I do thisCode:char arr[5][5] = { 'q', 'w', 'e', 'r', 't', 'y', 'u', .............. .... .... ... 'a' };