parent process should count and display the number of words the child enter, how we

White White

New member
write the display command? the parent will read from the pipe, count, then display
while((read(pfd[0],buf,SIZE))!=0) // while reading
execlp("wc","wc","-l",Null) // count
???? // how to display the output of counting ??
 
Back
Top