add sanity checks for old file systems
[unix-history] / usr / src / games / mille / table.c
CommitLineData
8427dd1d
KB
1/*
2 * Copyright (c) 1982 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 */
6
7#ifndef lint
8static char sccsid[] = "@(#)table.c 5.1 (Berkeley) %G%";
9#endif not lint
10
11# define DEBUG
12
13/*
14 * @(#)table.c 1.1 (Berkeley) 4/1/82
15 */
16
17# include "mille.h"
18
19main() {
20
21 reg int i, j, count;
22
23 printf(" %16s -> %5s %5s %4s %s\n", "Card", "cards", "count", "need", "opposite");
24 for (i = 0; i < NUM_CARDS - 1; i++) {
25 for (j = 0, count = 0; j < DECK_SZ; j++)
26 if (Deck[j] == i)
27 count++;
28 printf("%2d %16s -> %5d %5d %4d %s\n", i, C_name[i], Numcards[i], count, Numneed[i], C_name[opposite(i)]);
29 }
30}
31