Sample producer for mknod ipc
#include <stdio.h> | |
#include <unistd.h> | |
int main(int argc,char*argv) | |
{ | |
FILE *fp; | |
int i; | |
fp=fopen("myfifo.txt","w"); | |
for (i = 0;i<10;i++) | |
{ | |
fprintf(fp,"Hello %d\n",i); | |
fflush(fp); | |
sleep(1); | |
} | |
fclose(fp); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment