#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define FILENAME "s:rolodex.dat"
#define PRINTDEV "prt:"

const char
	*ver_string = "$VER: rolodex 1.3 (7.7.94)";

typedef
struct rolodex_card
	{
	char
		lastname[32],
		firstname[32],
		phone1[16],
		phone2[16],
		e_address[64],
		address[64],
		city[32],
		state[16],
		zip[16];
	}
	card;

typedef
struct list_entry
	{
	struct rolodex_card
		data;
	struct list_entry
		*prev,
		*next;
	}
	entry;

void
	add_card(void),
	dump_list(void),
	hardcopy_list(void),
	free_list(void),
	print_card(card *a),
	save_list(void);

int
	edit_card(card *jumpoff),
	read_card(card *jumpoff);

card
	get_card(void);

entry
	*jump(void),
	*search(char *string),
	*start;

FILE
	*fp,						/* data file handle */
	*printer;					/* printer handle */
