February 2020
Beginner to intermediate
616 pages
15h 16m
English
The writefifo.c program for writing into a FIFO is as follows:
#include <stdio.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>int main(){ int fw; char str[255]; mkfifo("FIFOPipe", 0666); fw = open("FIFOPipe", O_WRONLY); printf("Enter text: "); gets(str); write(fw,str, sizeof(str)); close(fw); return 0;}
Let's go behind the scenes.
Read now
Unlock full access