All pastes #955952 Raw Edit

Someone

public text v1 · immutable
#955952 ·published 2008-03-24 22:55 UTC
rendered paste body
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int main () {
  int result;
  int fd;
  int buf[10],buf1[10];


  result = mkfifo("fifo.pipe",0600);
  fd = open("fifo.pipe",O_RDONLY);


  read(fd,buf,sizeof(buf));
  printf("%s\n",buf);
    read(fd,buf,sizeof(buf));
  printf("%s\n",buf);


  return 0;
};