All pastes #954643 Raw Edit

Anonymous

public c v1 · immutable
#954643 ·published 2008-03-24 00:50 UTC
rendered paste body
#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>int main () {  int fd;  int buf[10],bufx,bufy;int result = 0;  result = mkfifo("fifo.pipe",0600);  fd = open("fifo.pipe",O_RDONLY);  	read(fd,&bufx,sizeof(buf));	read(fd,&bufy,sizeof(buf));result = bufx*bufy;printf("%d\n",result);  return 0;};