-/* $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
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
#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 <curses.h>
makedeck(d)
CARD d[];
{
- register int i, j, k;
+ int i, j, k;
i = time(NULL);
i = ((i & 0xff) << 8) | ((i >> 8) & 0xff) | 1;
shuffle(d)
CARD d[];
{
- register int j, k;
+ int j, k;
CARD c;
for (j = CARDS; j > 0; --j) {
CARD a, b[];
int n;
{
- register int i;
+ int i;
for (i = 0; i < n; i++)
if (eq(a, b[i]))
CARD a, d[];
int n;
{
- register int i, j;
+ int i, j;
for (i = j = 0; i < n; i++)
if (!eq(a, d[i]))
*/
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++)