Crossfire Client, Branch  R11627
second.c
Go to the documentation of this file.
00001 #include <stdio.h>
00002 
00003 int main (){
00004         char buf[200];
00005         int len;
00006         fprintf (stdout,"monitor\n");
00007         fflush (stdout);
00008         for(;;){
00009                 len=read (0,buf,150);
00010                 if (len)
00011                         write (2,buf,len);
00012                 else
00013                         exit(-1);
00014         }
00015 }