date and time created 94/04/13 10:27:13 by eric
[unix-history] / usr / src / games / hangman / prman.c
CommitLineData
dc7f5a19 1/*-
891bebb2
KB
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4a3cda5e 4 *
dc7f5a19 5 * %sccs.include.redist.c%
4a3cda5e
KB
6 */
7
8#ifndef lint
891bebb2 9static char sccsid[] = "@(#)prman.c 8.1 (Berkeley) %G%";
4a3cda5e
KB
10#endif /* not lint */
11
12# include "hangman.h"
13
14/*
15 * prman:
16 * Print out the man appropriately for the give number
17 * of incorrect guesses.
18 */
19prman()
20{
21 register int i;
22
23 for (i = 0; i < Errors; i++)
24 mvaddch(Err_pos[i].y, Err_pos[i].x, Err_pos[i].ch);
25 while (i < MAXERRS) {
26 mvaddch(Err_pos[i].y, Err_pos[i].x, ' ');
27 i++;
28 }
29}