It's that time of year, folks...
Evan Leibovitch
evan at telly.on.ca
Mon Dec 11 05:14:18 AEST 1989
---- 8< ----- cut here ----- valuable free source ----- cut here ----- 8< ----
#include <stdio.h>
#define DEFAULT_HOLIDAY "CHRISTMAS/CHANUKAH"
#define DAYS_OF_NEGLECT 12
char heading[] = "AN ELECTRONIC %s CARD TO ALL\n\
Lyrics by Evan Leibovitch, code by Beverly Erlebacher\n\n\
Dedicated to anyone who's left their computers alone\n\
just long enough for them to self-destruct:\n\n\
(Sung to the tune of something or other...)\n\n";
char * cardinal[] = {"And a", "Two", "Three", "Four", "Five",
"Six", "Seven", "Eight", "Nine", "Ten", "Eleven", "Twelve"};
char * ordinal[] = {"first", "second", "third", "fourth", "fifth", "sixth",
"seventh", "eighth", "ninth", "tenth", "eleventh", "twelfth", "thirteenth"};
char * item[] = { "burnt-out V.D.T.", "faulty tapes;",
"heads crashed;", "bad blocks;", "core dumps;", "bad controllers;",
"blown partitions;", "gettys dying;", "floppies frying;",
"ports a-jamming;", "chips a-smoking;", "boards a-blowing;" };
char daystr[] = "\nOn the %s day I left it, my Unix gave to me:\n";
char finale[] =
"\nOn the %s day I started adapting my Nintendo for the VME bus.\n";
main(argc, argv)
int argc;
char *argv[];
{
int i, j;
printf(heading, argc > 1 ? argv[1] : DEFAULT_HOLIDAY);
for (i = 0; i < DAYS_OF_NEGLECT; i++) {
printf(daystr, ordinal[i]);
if (i == 0)
printf("\tA %s\n", item[i]);
else for (j = i; j >= 0; j--)
printf("\t%s %s\n", cardinal[j], item[j]);
}
printf(finale, ordinal[DAYS_OF_NEGLECT]);
exit(0);
}
---- 8< --- cut here ---- end of valuable free source ----- cut here --- 8< ----
We wish you a Merry Solstice and a Bugfree New Year!
--
Evan Leibovitch, Sound Software, located in beautiful Brampton, Ontario
evan at telly.on.ca / uunet!attcan!telly!evan / (416)452-0504
If women designed condoms there is no doubt they would be not ribbed, but padded
More information about the Alt.sources
mailing list