|
|
1.1 ! root 1: static char sccsid[] = "@(#)help.c 2.4"; ! 2: ! 3: #include "cdb.h" ! 4: ! 5: long time(); ! 6: ! 7: /* H E L P */ ! 8: ! 9: export void Help() ! 10: { ! 11: /* need to open `help.text' and print it */ ! 12: system("more /usr/bin/help.text"); ! 13: } /* Help */ ! 14: ! 15: ! 16: /* F I N D A N D F I X */ ! 17: ! 18: export void FindAndFix() ! 19: { ! 20: long i, x[2]; ! 21: #define cMsg 5 ! 22: ! 23: time((long *)x); ! 24: srand(x[0]+x[1]); ! 25: i = rand() % cMsg; ! 26: switch (i) { ! 27: case 0: ! 28: printf("Hmm, seems to be in the hardware.\n"); ! 29: break; ! 30: case 1: ! 31: printf("Things look good, but you may have a halting problem.\n"); ! 32: break; ! 33: case 2: ! 34: printf("No known bugs.\n"); ! 35: break; ! 36: case 3: ! 37: printf("Why ask me? It's YOUR program!\n"); ! 38: break; ! 39: case 4: ! 40: printf("I can see the problem, but it will do you good to find it yourself.\n"); ! 41: break; ! 42: } /* switch */ ! 43: } /* FindAndFix */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.