xref: /original-bsd/games/hangman/prman.c (revision 48cf0a37)
1 /*-
2  * Copyright (c) 1983, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)prman.c	8.1 (Berkeley) 05/31/93";
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  */
19 prman()
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 }
30