reformat; use getopt(3); lint cleanups; don't assume 24 row terminal;
[unix-history] / usr / src / games / hangman / extern.c
CommitLineData
19d84893
KB
1/*
2 * Copyright (c) 1987 Regents of the University of California.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms are permitted
6 * provided that this notice is preserved and that due credit is given
7 * to the University of California at Berkeley. The name of the University
8 * may not be used to endorse or promote products derived from this
9 * software without specific prior written permission. This software
10 * is provided ``as is'' without express or implied warranty.
11 */
12
13#ifndef lint
14static char sccsid[] = "@(#)extern.c 5.1 (Berkeley) %G%";
15#endif /* not lint */
16
17# include "hangman.h"
18
19bool Guessed[26];
20
21char Word[BUFSIZ],
22 Known[BUFSIZ],
23 *Noose_pict[] = {
24 " ______",
25 " | |",
26 " |",
27 " |",
28 " |",
29 " |",
30 " __|_____",
31 " | |___",
32 " |_________|",
33 NULL
34 };
35
36int Errors,
37 Wordnum = 0;
38
39double Average = 0.0;
40
41ERR_POS Err_pos[MAXERRS] = {
42 { 2, 10, 'O' },
43 { 3, 10, '|' },
44 { 4, 10, '|' },
45 { 5, 9, '/' },
46 { 3, 9, '/' },
47 { 3, 11, '\\' },
48 { 5, 11, '\\' }
49};
50
51FILE *Dict = NULL;
52
53off_t Dict_size;