File:  [Research Unix] / researchv8dc / cmd / upas / send / rtest.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:59 2018 UTC (8 years, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv8, HEAD
researchv8 Dan Cross

#include <stdio.h>

char * thissys = "THISSYS";

main()
{
	char buf[132];
	char cmd[132];
	char format[132];
	char sysname[132];

	getrules();
	putchar('>');
	fflush(stdout);
	while(gets(buf)) {
		switch(rewrite(buf, "USER", 1, cmd, format, sysname)) {
		case -1:
			printf("can't recognize %s\n", buf);
			break;
		case 1:
			printf("can't forward %s\n", buf);
		case 0:
			printf("%s->'%s'\n", buf, cmd);
			break;
		}
		putchar('>');
		fflush(stdout);
	}
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.