simple yet tricky pipe question
Hi all..
Directly, is it possible to create a random number of pipes? This question arises because everytime i or someone creates a pipe, first declares a 2 state array and then do the pipe() call like:
fd[2];
..
pipe(fd);
For me it would be great to create a random number of pipes, but since we first have to declare a prefixed number of "state arrays" like the one fd[2] above i wonder if my question is possible!?
Thank you, hope further answers help other users as well.
|