summaryrefslogtreecommitdiffstats
path: root/cribbage/score.c
diff options
context:
space:
mode:
authorpk <pk@NetBSD.org>1997-05-17 19:24:44 +0000
committerpk <pk@NetBSD.org>1997-05-17 19:24:44 +0000
commitb218620de93fbebcfba8ec74b22d33986ba70b3f (patch)
treebabfc29746c0627a1f08d231c120eac9691c18db /cribbage/score.c
parent531a2505768cab68a9b91fb45959ed2be5a2fc33 (diff)
downloadbsdgames-darwin-b218620de93fbebcfba8ec74b22d33986ba70b3f.tar.gz
bsdgames-darwin-b218620de93fbebcfba8ec74b22d33986ba70b3f.tar.zst
bsdgames-darwin-b218620de93fbebcfba8ec74b22d33986ba70b3f.zip
NULL => 0 (Arne Juul; PR#3629)
Diffstat (limited to 'cribbage/score.c')
-rw-r--r--cribbage/score.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/cribbage/score.c b/cribbage/score.c
index 93f8c075..ac8c210d 100644
--- a/cribbage/score.c
+++ b/cribbage/score.c
@@ -1,4 +1,4 @@
-/* $NetBSD: score.c,v 1.3 1995/03/21 15:08:57 cgd Exp $ */
+/* $NetBSD: score.c,v 1.4 1997/05/17 19:26:19 pk Exp $ */
/*-
* Copyright (c) 1980, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)score.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: score.c,v 1.3 1995/03/21 15:08:57 cgd Exp $";
+static char rcsid[] = "$NetBSD: score.c,v 1.4 1997/05/17 19:26:19 pk Exp $";
#endif
#endif /* not lint */
@@ -121,7 +121,7 @@ scorehand(hand, starter, n, crb, do_explain)
CARD h[(CINHAND + 1)];
char buf[32];
- expl[0] = NULL; /* initialize explanation */
+ expl[0] = '\0'; /* initialize explanation */
score = 0;
flag = TRUE;
k = hand[0].suit;
@@ -137,7 +137,7 @@ scorehand(hand, starter, n, crb, do_explain)
}
if (flag && n >= CINHAND) {
- if (do_explain && expl[0] != NULL)
+ if (do_explain && expl[0] != '\0')
strcat(expl, ", ");
if (starter.suit == k) {
score += 5;
@@ -146,13 +146,13 @@ scorehand(hand, starter, n, crb, do_explain)
} else
if (!crb) {
score += 4;
- if (do_explain && expl[0] != NULL)
+ if (do_explain && expl[0] != '\0')
strcat(expl, ", Four-flush");
else
strcpy(expl, "Four-flush");
}
}
- if (do_explain && expl[0] != NULL)
+ if (do_explain && expl[0] != '\0')
strcat(expl, ", ");
h[n] = starter;
sorthand(h, n + 1); /* sort by rank */