-/* $NetBSD: playgame.c,v 1.5 2003/08/07 09:37:22 agc Exp $ */
+/* $NetBSD: playgame.c,v 1.7 2012/10/13 21:01:13 dholland Exp $ */
/*-
* Copyright (c) 1983, 1993
#if 0
static char sccsid[] = "@(#)playgame.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: playgame.c,v 1.5 2003/08/07 09:37:22 agc Exp $");
+__RCSID("$NetBSD: playgame.c,v 1.7 2012/10/13 21:01:13 dholland Exp $");
#endif
#endif /* not lint */
* play a game
*/
void
-playgame()
+playgame(void)
{
- bool *bp;
+ int i;
getword();
Errors = 0;
- bp = Guessed;
- while (bp < &Guessed[26])
- *bp++ = FALSE;
+ for (i=0; i<26; i++) {
+ Guessed[i] = false;
+ }
while (Errors < MAXERRS && strchr(Known, '-') != NULL) {
prword();
prdata();