File: second.c

package info (click to toggle)
crossfire-client 1.7.0-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,696 kB
  • ctags: 2,206
  • sloc: ansic: 24,397; sh: 3,743; makefile: 113; perl: 48
file content (15 lines) | stat: -rw-r--r-- 200 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

int main (){
	char buf[200];
	int len;
	fprintf (stdout,"monitor\n");
	fflush (stdout);
	for(;;){
		len=read (0,buf,150);
		if (len)
			write (2,buf,len);
		else
			exit(-1);
	}
}