// CLIENT #include #include #define FIFO_FILE "MIA_FIFO" //ipc-fifo-2.c int main(int argc, char *argv[]) { FILE *fp; if ( argc != 2 ) { printf("USO: client [string]\n"); exit(1); } if((fp = fopen(FIFO_FILE, "w")) == NULL) { perror("fopen"); exit(1); } fputs(argv[1], fp); fclose(fp); return(0); }