February 2020
Beginner to intermediate
616 pages
15h 16m
English
The pipedemo.c program for writing into the pipe through a child process and reading from the pipe through the parent process is as follows:
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#define max 50int main(){ char wstr[max]; char rstr[max]; int pp[2]; pid_t p; if(pipe(pp) < 0) { perror("pipe"); ...Read now
Unlock full access