nicer formatting
[tridge/junkcode.git] / fifo2.c
1 #include <stdio.h>
2 #include <sys/fcntl.h>
3
4 main()
5 {
6   char buf[100];
7   int fd;
8
9   sleep(5);
10   fd = open("ttyc",O_RDWR);
11
12   write(fd,"helloxxY",8);
13
14   read(fd,buf,7);
15   printf("got [%s]\n",buf);
16 }
17