diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-07-10 07:26:25 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-07-10 07:26:25 +0000 |
commit | 81fbdc5dca4ba4f9673c612f03fede15c8ad3f91 (patch) | |
tree | bb4eddffc1438ca1405dde0867782c5b37066a26 /games/cribbage/cards.c | |
parent | 123f3b7651527e3cd41a6956ecd641c00442b6c7 (diff) |
more ansi; khalek@linuxgamers.net
Diffstat (limited to 'games/cribbage/cards.c')
-rw-r--r-- | games/cribbage/cards.c | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/games/cribbage/cards.c b/games/cribbage/cards.c index c79f1be53d5..ac59b222332 100644 --- a/games/cribbage/cards.c +++ b/games/cribbage/cards.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cards.c,v 1.3 2003/06/03 03:01:39 millert Exp $ */ +/* $OpenBSD: cards.c,v 1.4 2004/07/10 07:26:23 deraadt Exp $ */ /* $NetBSD: cards.c,v 1.3 1995/03/21 15:08:41 cgd Exp $ */ /*- @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)cards.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: cards.c,v 1.3 2003/06/03 03:01:39 millert Exp $"; +static char rcsid[] = "$OpenBSD: cards.c,v 1.4 2004/07/10 07:26:23 deraadt Exp $"; #endif #endif /* not lint */ @@ -51,8 +51,7 @@ static char rcsid[] = "$OpenBSD: cards.c,v 1.3 2003/06/03 03:01:39 millert Exp $ * Initialize a deck of cards to contain one of each type. */ void -makedeck(d) - CARD d[]; +makedeck(CARD d[]) { int i, j, k; @@ -72,8 +71,7 @@ makedeck(d) * see Knuth, vol. 2, page 125. */ void -shuffle(d) - CARD d[]; +shuffle(CARD d[]) { int j, k; CARD c; @@ -90,8 +88,7 @@ shuffle(d) * return true if the two cards are equal... */ int -eq(a, b) - CARD a, b; +eq(CARD a, CARD b) { return ((a.rank == b.rank) && (a.suit == b.suit)); } @@ -100,9 +97,7 @@ eq(a, b) * isone returns TRUE if a is in the set of cards b */ int -isone(a, b, n) - CARD a, b[]; - int n; +isone(CARD a, CARD b[], int n) { int i; @@ -116,9 +111,7 @@ isone(a, b, n) * remove the card a from the deck d of n cards */ void -cremove(a, d, n) - CARD a, d[]; - int n; +cremove(CARD a, CARD d[], int n) { int i, j; @@ -134,9 +127,7 @@ cremove(a, d, n) * Sort a hand of n cards */ void -sorthand(h, n) - CARD h[]; - int n; +sorthand(CARD h[], int n) { CARD *cp, *endp; CARD c; |