+/* $NetBSD: prdata.c,v 1.4 1997/10/11 01:16:37 lukem Exp $ */
+
/*-
- * Copyright (c) 1983 The Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1983, 1993
+ * The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#ifndef lint
-/*static char sccsid[] = "from: @(#)prdata.c 5.3 (Berkeley) 4/8/91";*/
-static char rcsid[] = "$Id: prdata.c,v 1.2 1993/08/01 18:54:23 mycroft Exp $";
+#if 0
+static char sccsid[] = "@(#)prdata.c 8.1 (Berkeley) 5/31/93";
+#else
+__RCSID("$NetBSD: prdata.c,v 1.4 1997/10/11 01:16:37 lukem Exp $");
+#endif
#endif /* not lint */
-# include "hangman.h"
+#include "hangman.h"
/*
* prdata:
* Print out the current guesses
*/
+void
prdata()
{
- register bool *bp;
+ bool *bp;
move(GUESSY, GUESSX + sizeof "Guessed: ");
bp = Guessed;
addch((bp - Guessed) + 'a' - 1);
clrtoeol();
mvprintw(NUMBERY, NUMBERX + sizeof "Word #: ", "%d", Wordnum);
- mvprintw(AVGY, AVGX + sizeof "Current Average: ", "%.3f",
- (Average * (Wordnum - 1) + Errors) / Wordnum);
- mvprintw(AVGY + 1, AVGX + sizeof "Overall Average: ", "%.3f", Average);
+ mvprintw(AVGY, AVGX + sizeof "Current Average: ", "%.3f",
+ (Average * (Wordnum - 1) + Errors) / Wordnum);
+ mvprintw(AVGY + 1, AVGX + sizeof "Overall Average: ", "%.3f", Average);
}