X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/462fca95471224f85b85be911e72faee16cd1597..8dd0f8b5a7616b209c9f8fff583b0934785bb1e9:/hangman/prdata.c diff --git a/hangman/prdata.c b/hangman/prdata.c index 02321d0a..5ee00228 100644 --- a/hangman/prdata.c +++ b/hangman/prdata.c @@ -1,6 +1,8 @@ +/* $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 @@ -31,20 +33,25 @@ * SUCH DAMAGE. */ +#include #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; @@ -53,7 +60,7 @@ prdata() 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); }