Martin McCormick writes:
> Ivan Jager writes:
> if( write(leftchannel_pipe[1], &leftbyte, 1) < 0)
> if ((leftchannel_pipe[0] = fdopen(leftdata,"r")) == NULL) {
And leftchannel_pipe is supposed to be an array? Without seeing more of
your program, we're left in the dark ...
--
Ivan Jager writes:
> Rather than using fwrite() you could just use write(), which takes a
> file descriptor. Alternately, if you really want to use fwrite or
> other stdio functions rather than the *nix syscalls, you could
> use fdopen() to get a FILE* corresponding to the pipe's fd.
>
> If you ch
2 matches
Mail list logo