From: jon@cs.utexas.edu (Jon Boede)
Newsgroups: soc.penpals
Subject: Matchmaker Electronic Pen-Pal Network
Date: 30 Sep 1992 13:20:22 -0500
Organization: The University, Austin TX
Distribution: world
NNTP-Posting-Host: earth.cs.utexas.edu
Summary: 9,500 people, no waiting

I didn't know that this group existed, or I would have posted this before.

At the bottom of this is a C program that you can compile and run which will
let you use the Matchmaker Pen-Pal server.  There are about 9,400 people
using the mm Pen-Pal network now, mostly on dial-up systems:

ALAMO       494 users, San Antonio, Texas
AUSTIN      619 users, Austin, Texas
BODEDO       10 users, Network Operations Center
CHICAGO     281 users, Chicago, Illinois
DALLAS     1322 users, Dallas, Texas
DEL-MAR     632 users, Del Mar, California
HOUSTON    2094 users, Houston, Texas
LAX          34 users, Los Angeles, California
NEWYORK     808 users, New York, New York
PHOENIX     178 users, Phoenix, Arizona
RELAY       263 users, The internet Relay
SILICON    1194 users, Santa Clara, California
SOUTHLAND   145 users, LA Valley Basin, California
TAMPA       960 users, Tampa, Florida
VABEACH     438 users, Virginia Beach, Virginia 

The best part about this server is that you can read questionnaires filled
out by other people.  You can also use it anonymously -- the server will
give you a UCM-ID, which will mask your internet mail address.

Comments or questions can be directed to staff@ucm.org.

#include <stdio.h>
#include <ctype.h>
 
/* compile this with: cc -O matchmaker.c -o matchmaker
 * it probably belongs in /usr/games/matchmaker */
 
/*
 	Copyright (C) 1987,1990 Jon Boede (Author) (jon@bodedo.ucm.org).
 
	This is a published work.  This program may be redistributed so long
	as it retains this copyright notice and so long as the distribution
	and especially the use of the gateway server are not-for-profit.  Use
	for-profit may only occur with the written consent of the Author.  All
	other rights not stated herein are reserved by the Author.
*/
 
static char *path_server = "\nrequest@bodedo.ucm.org (...!cs.utexas.edu!bodedo!request)";
 
/* this program over-indulges in building large areas of static text, but it
 * sure beats zillions of puts' and I wanted to bundle the whole program
 * rather than have bunches of text files running around... */
 
static char *the_intro[] = {
"Simply, you can send requests to the server to find matching people on the",
"network (and on the ucm BBS network) with whom you may correspond via",
"electronic mail.  If your account is not authorized to send mail to other",
"computers, you will find it *exceptionally* difficult to use this program.",
"",
"This program places two files in your home directory... the first is a set",
"of essay questions for you to fill out and the second is a letter for you to",
"mail to the gateway server.",
"",
"To completely start over, remove the ucm.essay from your home directory and",
"run this program again.  If you have already filed an essay (from when you",
"ran this program before) you will now proceed with the multiple-choice",
"portion of the questionnaire.", NULL };
 
/* this text will be put in $HOME/ucm.essay for the user to edit with vi or
 * whatever turns them on.  Hopefully placing no restriction on the size of
 * the essay won't prove to be an unwise decision */
 
static char *essay_txt[] = {
"First, where are you located (School/Organization,City,State,Country) and",
"what is a good mail path to your site?",
">", "",
"If you could choose the ideal date, what would he/she be like?",
">", "",
"Where do you usually make new friends?",
">", "",
"Describe your personality type?  What type are you attracted to?",
">", "",
"What type of music do you enjoy?",
">", "",
"What kind of magazines/newspapers/books do you read?  Favorite authors?",
">", "",
"Where would you like to be tomorrow?  2 years?  5 years?",
">", "",
"You may enter any additional autobiographical comments - Please Be Honest!!",
">", NULL };
 
/* a thousand apologies if you find these questions incomplete, biased,
 * or otherwise offensive -- we tried to be general but it's just not possible
 */
 
static char *question[] = {
"What is your sex?",
"Male",
"Female",
NULL,
"What is your sexual preference?",
"Heterosexual",
"Bisexual",
"Gay",
NULL,
"How old are you?",
"Under 15",
"15 - 17",
"18 - 20",
"21 - 25",
"26 - 30",
"31 - 35",
"36 - 40",
"41 - 45",
"46 - 50",
"51 - 60",
"Over 60",
NULL,
"What is your weight?",
"Less than 100# (45Kg)",
"100-125# (45-57Kg)",
"126-140# (57-64Kg)",
"141-160# (64-73Kg)",
"161-180# (73-82Kg)",
"181-200# (82-91Kg)",
"201-220# (91-100Kg)",
"221-250# (100-114Kg)",
"Over 250# (114Kg)",
"I broke the truckstop scale",
NULL,
"What is your height?",
"Under 5' (152cm)",
"5'-5'2\" (152-157cm)",
"5'2\"-5'4\" (157-163cm)",
"5'4\"-5'6\" (163-168cm)",
"5'6\"-5'8\" (168-147cm)",
"5'8\"-5'10\" (147-178cm)",
"5'10\"-6' (178cm-183cm)",
"6'-6'2\" (183-188cm)",
"6'2\"-6'4\" (188-193cm)",
"Over 6'4\" (193cm)",
NULL,
"What is your sign?",
"Aquarius",
"Pisces",
"Aries",
"Gemini",
"Virgo",
"Capricorn",
"Cancer",
"Leo",
"Sagittarius",
"Libra",
"Scorpio",
"Taurus",
"Neon",
"One Way",
"Yield",
NULL,
"What is the color of your hair?",
"Brown hair",
"Black hair",
"Red hair",
"Blond hair",
"Auburn hair",
"Gray hair",
"Technicolor punk",
"Only my hairdresser knows",
"Bald",
NULL,
"What is the style of your hair?",
"Long straight hair",
"Long curly/wavy hair",
"Medium straight hair",
"Medium curly/wavy hair",
"Short straight hair",
"Short curly/wavy hair",
"My hair defies description",
"I'm totally bald, okay!",
NULL,
"What color eyes do you have?",
"Big Brown eyes",
"Deep Blue eyes",
"Sexy Hazel eyes",
"Wild Green eyes",
"Violet eyes",
"Steel-Grey eyes",
"Bloodshot eyes",
"Bette Davis eyes",
"Permanently crossed eyes",
NULL,
"Do you have eyewear?",
"My vision is perfect, I have no eyewear",
"I wear fashionable glasses",
"I wear nerd glasses",
"I wear contact lenses",
"I wear cheap sunglasses",
"My guide dog wears cheap sunglasses",
NULL,
"Your current living situation is?",
"Happily married",
"Not-so-happily married",
"Married and we swing",
"Divorced living alone",
"Divorced living with kid(s)",
"Divorced living with lover",
"Divorced living with roommate(s)",
"Single living in style",
"Single living with kid(s)",
"Single living with lover",
"Single living with roommate(s)",
"Student squalor",
"Living with parents",
NULL,
"What area of the world do you live in?",
"Northern United States",
"Southern United States",
"Eastern United States",
"Western United States",
"Canada",
"Mexico / Central - South America",
"Europe",
"Africa",
"Middle-East",
"Asia",
"Japan",
"Australia / South Pacific",
"Antarctica",
"Space (seriously!)",
NULL,
"In what type of dwelling do you live?",
"I reside in an apartment",
"I reside in a condo",
"I reside in a house",
"I reside in a mobile home",
"I reside in a townhouse",
"I reside in a dormitory",
"Wherever there's a bed",
"I stay in hotels / motels",
NULL,
"What type of transportation do you use?",
"Japanese luxury car",
"European luxury car",
"American luxury car",
"Japanese sports car",
"European sports car",
"American sports car",
"Japanese economy car",
"European economy car",
"American economy car",
"Truck",
"Van",
"Motorcycle",
"Bicycle / Skateboard",
"Via bus",
"My feet take me almost everywhere",
"Land barge",
NULL,
"What is your annual income?",
"Less than $10,000",
"$10,000 - $20,000",
"$20,000 - $30,000",
"$30,000 - $40,000",
"$40,000 - $50,000",
"$50,000 - $60,000",
"Over $60,000",
"None of your damn business!",
"What, me work?",
NULL,
"What type of work do you do (or what is your major)?",
"Executive",
"Administrative",
"Financial",
"Managerial",
"Clerical / Secretarial",
"Sales",
"Science / Engineering",
"Technical",
"Food services",
"Legal professions",
"Artistic / Musical / Writer",
"Medical / Dental",
"Political / Government",
"Transportation",
"Celebrity / Personality",
"Laborer / Construction",
"Student",
"Bummin' my way through life",
"Retired",
"Self employed",
NULL,
"Is age important to you?",
"I would like to meet someone older than me",
"I would like to meet someone close to my age",
"I would like to meet someone younger than me",
"Age is not important to me",
NULL,
"I prefer the following ethnic group:",
"White",
"Black",
"Oriental",
"Hispanic",
"Other",
"Ethnic group really doesn't matter to me",
NULL,
"Of this list, what is your favorite OUTDOOR activity?",
"Sports / Athletics",
"Travel",
"Automobiles / Motorcycles",
"Camping / Fishing / Hiking",
"Biking",
"Gardening / Plant growing",
"Photography",
"Flying / Ultra-lites",
"Picnics in the park",
"Swimming / Sailing / Scuba / Skiing",
"Golf / Tennis",
"Tan maintenance",
"Girl/Boy watching",
"Horseback riding",
NULL,
"Of this list, what is your favorite INDOOR activity?",
"Programming / Computers",
"Dancing",
"Theater / Movies",
"Listening to music",
"Attending concerts",
"Avid book reading",
"Cooking / Culinary arts",
"Watching TV",
"Weight lifting",
"Photography",
"Wine tasting",
"Video games",
"Hot tubbing",
"Bar hopping",
"Hanging out at the mall",
"Ceramics / Crafts / Painting",
NULL,
"What is your favorite type of music?",
"Rock & Roll",
"Pop / Top 40",
"Oldies but Goodies",
"New Wave",
"Punk",
"Soul",
"Disco",
"Jazz",
"Rhythm and Blues",
"Classical",
"Opera",
"Folk",
"Reggae",
"Country and Western",
"Christian / Gospel",
"Movie sound tracks",
NULL,
"Do you favor a particular color?",
"Red is my favorite color",
"Orange is my favorite color",
"Yellow is my favorite color",
"Green is my favorite color",
"Blue is my favorite color",
"Indigo is my favorite color",
"Purple is my favorite color",
"Brown is my favorite color",
"White is my favorite color",
"Black is my favorite color",
"Pink is my favorite color",
"No favorite color",
NULL,
"How would you describe your sense of humor?",
"I rarely tell jokes or laugh",
"I enjoy a good joke or story",
"I love telling jokes and stories",
"I am going to be the next Groucho Marx",
"I live in the Far Side",
"I live for rec.humor",
"I am very sarcastic",
"I'm the life of the party when I've had too much to drink",
"We are not amused",
NULL,
"If you could have any pet, which one of the following would you choose?",
"Dog",
"Cat",
"Horse",
"Reptile",
"Rodent",
"Fish",
"Bird",
"Some other pet",
"Stuffed animal",
"Pet rock",
"I do not like pets",
NULL,
"Do you drink?",
"I do not drink",
"I drink socially",
"I drink daily",
"I drink like a fish",
NULL,
"Do you smoke?",
"I do not smoke",
"I smoke in moderation",
"I smoke like a chimney",
"I occasionally get high",
"I get high daily",
"I never come down",
"I'm kicking the habit",
NULL,
"I have:",
"Very good looks",
"Above average looks",
"Middle of the road looks",
"Bad part of the road looks",
"Road Closed / Bring your bag",
NULL,
"You might be best described as:",
"Intelligent / Cautious",
"Romantic / Optimistic",
"Cheerful / Realistic",
"Daring / Wild",
"Quiet / Serene",
"Naive / Sheltered",
"Bleak / Moody",
"Just plain stupid",
NULL,
"Is religion a part of your life?",
"Religion is a large part of my life",
"I am moderately religious",
"Religion is not a part of my life",
NULL,
"Describe your television viewing habits.",
"I watch at least one network show a night",
"I watch at least one cable show a night",
"I have a half dozen weekly favorites",
"T.V. was made to watch football/baseball",
"I watch PBS exclusively",
"It's on MTV and the knob is gone",
"Just HBO/Showtime stuff",
"T.V. was made for CNN headline news",
"Only rented movies",
"I'm Captain Midnight!",
"I wait 'till the signoff and watch the snow",
"I don't watch television",
NULL,
"Where would you prefer to live?",
"A farm in the country",
"A cottage in the country",
"In the heart of the city",
"An apartment in the suburbs",
"A house in the suburbs",
"In a small town",
"A Mondo Condo in Florida",
"In my car / van",
"On another planet",
"You call this living?",
"Lost in the wilderness",
"On the move",
"On a yacht in the Caribbean Sea",
"With the Matchmaker",
NULL,
"Current education level:",
"Smart ass",
"Have not finished high school yet",
"High School",
"Technical School",
"College freshman",
"College sophomore",
"College junior",
"College senior ",
"Professional program",
"4 year degree",
"Masters degree",
"Doctorate degree",
NULL,
"When going somewhere,",
"I am usually early",
"I am usually on time",
"I am usually late",
"I go nowhere, fast",
"I never show up",
NULL,
"Are you happy with the fame and fortune in your life?",
"I don't have many of the things I really want",
"I'm just about where I want to be",
"I want a bit more, but I have everything I need",
"I have plans to take more control of my life",
"I will set the world on fire with what I plan to do",
"What?  Me worry?",
"I sleep in the streets",
NULL,
"Pick a Great Escape:",
"Beach strolling along the Riviera",
"A Jacuzzi by candlelight in Rome",
"A romantic dinner in Paris",
"Sailing to the Caribbean",
"Toasting the Japanese sunrise",
"Driving up the California coastline",
"A train ride through Switzerland",
"Tea for two in London",
"A weekend in Las Vegas",
"Hiking down the Grand Canyon",
"A ride on the Space Shuttle",
"A bottle of Ripple on a Saturday night",
NULL,
"Which is your favorite season?",
"Winter",
"Spring",
"Summer",
"Fall",
"Football",
NULL,
"What style of dress do you prefer?",
"I like to get dressed up",
"I like to dress casual",
"I dress for the occasion",
"What ever is clean",
"Preppy",
"Punk",
"Nude",
"Just call me Fred Flintstone",
NULL,
"I would rather watch a movie:",
"In the theater",
"At home / VCR",
"At the drive in",
"In a booth with lotsa quarters",
"I hate movies",
NULL,
"When I fall in love:",
"I usually settle down with one partner",
"I usually look for more partners",
"I lose my lovers and get hurt",
"I discard my lovers after awhile",
"I usually get married",
"I have never fallen",
"I fall apart",
NULL,
"What would you expect on a first date?",
"A handshake",
"A kiss at the door",
"Light petting",
"Your place or mine?",
"Pure sexual ecstasy",
"If it's the right person anything can happen",
"Dinner?",
NULL,
"When I purchase items such as a TV, stereo, or clothing, I always:",
"Buy top of the line brand names",
"Spend the most I can afford",
"Buy the first one I see",
"Get the cheapest, on sale",
"Dig in the Goodwill dumpster",
NULL,
"What type of food do you enjoy most?",
"Chinese food",
"Italian food",
"Mexican food",
"French cuisine",
"American food",
"Vietnamese food",
"German food",
"Cajun food",
"Japanese food",
"East Indian food",
"Russian food",
"Seafood",
"Greek food",
"Fast food",
"Beer",
"Health food",
NULL,
"What type of movie do you like best?",
"Romance",
"Musicals",
"War",
"Western",
"Drama / Tear-jerkers",
"Science fiction",
"Animations",
"Comedy",
"Horror",
"Mystery",
"Pornographic",
"Adventure",
"Documentary",
"Fantasy",
"Action",
"I told you, I hate movies!",
NULL,
"Finally, why did you call?",
"Hoping to start a serious relationship",
"Seeking an occasional lover",
"Hunting for a roommate",
"Scouting out for swinging couples",
"Looking for a pen pal / friend",
"Just looking / Curious",
"A friend put me up to this",
"Looking for a one-night-stand",
"A system mis-routed my mail",
"I don't know and I won't call back!",
NULL, NULL };
 
static char *t_essay[] = {
"This program is divided into two parts.  In the first part is an essay-style",
"questionnaire and the second is multiple choice.  The program will stop now",
"and ask you to fill in your essay questionnaire using your favorite editor.",
"Place your response to each question after the '>' prompt provided.  You may",
"enter as much text as you like, but please keep the text within an 80 column",
"screen-width.  Leave a blank line between questions for neatness' sake.  You",
"may add, remove or modify questions to suit your own [good!] tastes.  Note",
"that while the gateway administrator supports your freedom of speech, the",
"gentle reader will appreciate your consideration of their sensibilities.","",
"Keep your answers brief as other sites will be paying to transmit them.",
NULL };
 
/* zip is included because the BBS program uses it -- in a large metropolitan
 * area, like the ones ALAMO, HOUSTON and SILICON are located in, one cross-
 * references the zip with the area of town they live in -- on a more global
 * scale, the zip just becomes a reasonably meaningless statistic -- however,
 * it is included in the match lists -- so perhaps it will be of some use */
 
static char *t_zip[] = {
"When asked for your ZIP code, you may respond with any 5 digit number that",
"you feel is representative of your location.  If you live outside of the",
"United States, it's suggested that you enter the 3-digit country code used",
"for international telephone dialing.  As the essay portion asked for your",
"location and as the multiple-choice portion will ask which area of the world",
"you live in the ZIP code will be primarily used for statistical purposes.",
NULL };
 
/* an expiration date of 0 means "unlimited" -- again, this is a carryover
 * from the BBS software which uses an expiration date to credit time to
 * users' accounts.  5 bucks says almost everybody puts outrageous windows even
 * tho' they can change it easily later */
 
static char *ex_text[] = {
"The next thing you will be asked for is an expiration window.  This is the",
"number of months that you intend to be available to the net.  For example,",
"if you are graduating in a year, put 12 months.  A reasonable expiration",
"window helps the gateway administrator in removing inactive accounts.  Note",
"that your account will be terminated for 40 days of inactivity but if your",
"account is within its expiration window you will be notified at the 30 day",
"mark.  Your expiration window may be easily modified in the future so PLEASE",
"be reasonable.",NULL };
 
/* initial requests for help information from the server and a match list.
 * 100 people is a pretty big match list @ about 90 characters per line.
 * with the Help the letter they get back jumps to about 14-15K bytes */
 
static char *in_letter[] = {
"", "",
"If a friend has already received help information from the request server,",
"please delete the following %help line to cut down on the volume of traffic",
"back to your site.  Thanks!",
"%help", "", 
"The following asks for a list of systems on the network.  It's included just",
"FYI.", "%sites", "",
"The following asks for the top 100 people that you match across all systems.",
"%match c 100 allsys",
"", "Good Luck!", NULL };
 
static char *last_text[] = {
"That's it!  Now all you need to do is mail off the letter that was created",
"by this program to the gateway server.","","Good Luck!", NULL };
 
/* seriously, good luck!  matchmaker software has been reported as producing
 * results "beyond your wildest expectations" - your actual mileage may vary */
 
main()
{
	FILE *stream, *essay, *fopen();
	char ans, *my_home, my_essay[90], the_letter[90], name[11], e_buf[80];
	char *getenv(), *fgets();
	int an_int, qnum, anum, qvect;
	long zip;
	register char *cs;
 
	/* grab the $HOME environment variable -- one can only imagine the
	 * bizzare circumstances under which it wouldn't be there */
	if ((my_home = getenv("HOME")) == NULL) {
		fprintf(stderr,"Help!  I can't go $HOME!\n");
		exit(-1);
	}
 
	printf("This program allows you to find your match on the network by corresponding\n");
	printf("with a matchmaking daemon at %s\n",path_server);
	putext(the_intro,stdout);
	printf("\nDo you wish to continue [N] ? ");
	if (get1char() != 'Y')
		exit(0);
	sprintf(my_essay,"%s/ucm.essay",my_home);
	/* if the essay exists we're in phase 2, else we're in phase 1. */
	/* phase 1 creates the essay, phase 2 assumes that phase 1 has
	 * created the essay and that the user has already edited it */
	if ((essay = fopen(my_essay,"r")) == NULL)
		if ((essay = fopen(my_essay,"w")) == NULL) {
			perror(my_essay);
			fprintf(stderr,"Your essay couldn't be created.  Fix your $HOME and run this program again.\n");
			exit(-1);
		}
		else {
			putext(essay_txt,essay);
			fclose(essay);
			putext(t_essay,stdout);
			printf("\nEdit %s and run this program again.\n",
			my_essay);
			exit(0);
		}
 
	/* open $HOME/ucm.letter -- the letter that will be mailed off */
	sprintf(the_letter,"%s/ucm.letter",my_home);
	if ((stream = fopen(the_letter,"w")) == NULL) {
		perror(the_letter);
		fprintf(stderr,"Your letter text couldn't be created.  Fix your $HOME and run this again.\n");
		exit(-1);
	}
 
	/* get name and other personal data -- this is checked again (more
	 * vigorously) by the gateway server -- don't want it bouncing back */
	printf("\nEnter your first name (experience advises against \"handles\")\n");
n_oops:
	printf("\nFirst name (2-10 characters) ? ");
	scanf("%10s%*[^\n]",name);
	if (strlen(name) < 2) {
		printf("\nName too short use 2-10 characters.\n");
		goto n_oops;
	}
	for (cs=name; *cs; cs++)
		if (isascii(*cs) && islower(*cs))
			*cs = toupper(*cs);
 
	for (cs=name; *cs; cs++) {
		if (*cs >= 'A' && *cs <= 'Z')
			continue;
		if (*cs == '!' || *cs == '.')
			continue;
		printf("\nBogus character, '%c', try again.\n",*cs);
		goto n_oops;
	}
	printf("\nYou entered \"%s\" -- correct [N] ? ",name);
	if (get1char() != 'Y')
		goto n_oops;
	fprintf(stream,"%%new %s",name);
 
	putext(t_zip,stdout);
z_oops:
	printf("\nWhat is your ZIP code ? ");
	scanf("%ld%*[^\n]",&zip);
	if (zip < -9999L || zip > 99999L) {
		printf("\nBogus ZIP code.\n");
		goto z_oops;
	}
	fprintf(stream," %ld",zip);
 
bm_oops:
	printf("\nWhat MONTH were you born in (1-12) ? ");
	scanf("%d%[^\n]",&an_int);
	if (an_int < 1 || an_int > 12) {
		printf("\nBogus MONTH.\n");
		goto bm_oops;
	}
	fprintf(stream," %d",an_int);
 
bd_oops:
	printf("\nWhat DAY were you born on (1-31) ? ");
	scanf("%d%[^\n]",&an_int);
	if (an_int < 1 || an_int > 31) {
		printf("\nBogus DAY.\n");
		goto bd_oops;
	}
	fprintf(stream," %d",an_int);
 
	putext(ex_text,stdout);
ex_oops:
	printf("\nAn expiration in months from today (1-24) ? ");
	scanf("%d%[^\n]",&an_int);
	if (an_int < 1 || an_int > 24) {
		printf("\nBogus exipiration.\n");
		goto ex_oops;
	}
	fprintf(stream," %d",an_int);
 
pw_oops:
	printf("\nEnter a PASSWORD (2-10 characters) ? ");
	scanf("%10s%*[^\n]",name);
	for (cs=name; *cs; cs++)
		if (isascii(*cs) && islower(*cs))
			*cs = toupper(*cs);
 
	for (cs=name; *cs; cs++) {
		if (*cs >= 'A' && *cs <= 'Z')
			continue;
		if (*cs == '!' || *cs == '.')
			continue;
		printf("\nBogus character, '%c', try again.\n",*cs);
		goto pw_oops;
	}
	fprintf(stream," %s\n",name);
 
	/* copy essay responses to letter text */
	while (fgets(e_buf,79,essay) != NULL) {
		if (an_int = strlen(e_buf))
			if (e_buf[an_int-1] == '\n')
				e_buf[an_int-1] = '\0';
		fprintf(stream,"%%e %s\n",e_buf);
	}
	fclose(essay);
 
	/* multiple choice portion */
	fprintf(stream,"%%ans ");
	qnum = qvect = 0;
 
	do {
q_oops:
		/* ask question */
		printf("\n%d.  %s\n",++qnum,question[qvect]);
		/* print answers */
		for (anum=1; question[qvect+anum] != NULL; ++anum)
			printf("\t%c. %s\n",anum-1+'A',question[qvect+anum]);
		printf("\nChoose A-%c ? ",'A'+anum-2);
		ans = get1char();
		if (ans < 'A' || ans > 'A'+anum-2) {
			printf("\nBogus.  Use A-%c.\n",'A'+anum-2);
			goto q_oops;
		}
		/* write it to the letter */
		putc(ans,stream);
	} while (question[qvect += ++anum] != NULL);
 
	/* text to show systems, make a match, etc */
	putext(in_letter,stream);
	fclose(stream);
 
	/* we're done message */
	putext(last_text,stdout);
	printf("\nPlease examine %s before mailing it off to the server.\n",
	the_letter);
	printf("\nWhen you're all done, mail it to: %s\n",path_server);
	exit(0);
}
 
get1char()
{
	char answer[255];
 
	scanf("%1s%*[^\n]",answer);
 
	if (isascii(*answer) && islower(*answer))
		return(toupper(*answer));
	else
		return(*answer);
}
 
putext(the_text,where)
char *the_text[];
FILE *where;
{
	register int loop;
 
	if (where == stdout)
		putchar('\n'); /* screen stuff gets a blank line before it */
	for (loop=0; the_text[loop] != NULL; )
		fprintf(where,"%s\n",the_text[loop++]);
}
-- 
Jon Boede                     jon@cs.utexas.edu
The University, People's Republic of Austin, TX
Newsgroups: soc.penpals