pipe creates two file descriptors which can be used by parent and child processes to communicate data. A child process can be created with the fork function.
Library: unistd.h Prototype: int pipe(int fd[2]); Syntax: int fd[2]; pipe(fd); |
Once the pipe has been executed, the data can be transfered using read and write.
read and write variable length records.
popen function.
pclose function.
read function.
write function.
Top | Master Index | Keywords | Functions |