File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / bin / cdb / help.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:24:19 2019 UTC (7 years ago) by root
Branches: bsd, MAIN
CVS tags: v12b, v121, HEAD
Power 6/32 Unix version 1.2b

static char sccsid[] = "@(#)help.c	2.4";

#include "cdb.h"

long time();

/* H E L P */

export void Help()
{
	/* need to open `help.text' and print it */
	system("more /usr/bin/help.text");
} /* Help */


/* F I N D   A N D   F I X */

export void FindAndFix()
{
	long	i, x[2];
#define cMsg 5

	time((long *)x);
	srand(x[0]+x[1]);
	i = rand() % cMsg;
	switch (i) {
	case 0:
		printf("Hmm, seems to be in the hardware.\n");
		break;
	case 1:
		printf("Things look good, but you may have a halting problem.\n");
		break;
	case 2:
		printf("No known bugs.\n");
		break;
	case 3:
		printf("Why ask me? It's YOUR program!\n");
		break;
	case 4:
		printf("I can see the problem, but it will do you good to find it yourself.\n");
		break;
	} /* switch */
} /* FindAndFix */

unix.superglobalmegacorp.com

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