#include "memo.h"


show_memos()
{
	long start_t, stop_t, repeat_t;
	char text[MAXLINE];
	int i;

	if ((fp = fopen(mfile, "r")) == NULL)
		fprintf(stderr, "memo: can't open memo file %s\n", mfile);
	else {
		for (i=1; fscanf(fp, "%ld%ld%ld", &start_t, &stop_t, &repeat_t) != EOF && fgets(text, MAXLINE, fp) != NULL; i++) {
			
			if (current(start_t, stop_t, repeat_t))
				printf("%3d) %s", i, text);
		}
		fclose(fp);
	}
}
