SysIII/usr/src/games/master/instr.c

Compare this file to the similar file:
Show the results in this format:

/*
 *	Prints instructions on the terminal
 */

#include <stdio.h>
#define EXPFILE "/usr/games/mmhow"

instr()
{
	FILE *expfile;
	register int c;

	if ((expfile = fopen (EXPFILE, "r")) == NULL) {
		printf ("I couldn't get the explanation file\n");
		return;
	}
	while ((c = getc (expfile)) != EOF)
		putchar (c);
	if (fclose (expfile) == EOF)
		printf ("I couldn't close the explanation file\n");
}