X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/5ff78ede5ea1a80c654d3f0684cd5f36d5253ae1..a802fa34d624ed55dc2ad33475fb1087c6763d05:/cribbage/cards.c diff --git a/cribbage/cards.c b/cribbage/cards.c index a81bdf65..e6c52628 100644 --- a/cribbage/cards.c +++ b/cribbage/cards.c @@ -1,4 +1,4 @@ -/* $NetBSD: cards.c,v 1.3 1995/03/21 15:08:41 cgd Exp $ */ +/* $NetBSD: cards.c,v 1.4 1997/10/10 12:32:22 lukem Exp $ */ /*- * Copyright (c) 1980, 1993 @@ -33,8 +33,13 @@ * SUCH DAMAGE. */ +#include #ifndef lint +#if 0 static char sccsid[] = "@(#)cards.c 8.1 (Berkeley) 5/31/93"; +#else +__RCSID("$NetBSD: cards.c,v 1.4 1997/10/10 12:32:22 lukem Exp $"); +#endif #endif /* not lint */ #include @@ -53,7 +58,7 @@ void makedeck(d) CARD d[]; { - register int i, j, k; + int i, j, k; i = time(NULL); i = ((i & 0xff) << 8) | ((i >> 8) & 0xff) | 1; @@ -74,7 +79,7 @@ void shuffle(d) CARD d[]; { - register int j, k; + int j, k; CARD c; for (j = CARDS; j > 0; --j) { @@ -103,7 +108,7 @@ isone(a, b, n) CARD a, b[]; int n; { - register int i; + int i; for (i = 0; i < n; i++) if (eq(a, b[i])) @@ -119,7 +124,7 @@ cremove(a, d, n) CARD a, d[]; int n; { - register int i, j; + int i, j; for (i = j = 0; i < n; i++) if (!eq(a, d[i])) @@ -134,10 +139,10 @@ cremove(a, d, n) */ void sorthand(h, n) - register CARD h[]; + CARD h[]; int n; { - register CARD *cp, *endp; + CARD *cp, *endp; CARD c; for (endp = &h[n]; h < endp - 1; h++)