Commit | Line | Data |
---|---|---|
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 | 9 | static 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 | */ | |
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 | } |