summaryrefslogtreecommitdiffstats
path: root/cribbage/io.c
diff options
context:
space:
mode:
authorroy <roy@NetBSD.org>2009-07-13 19:05:39 +0000
committerroy <roy@NetBSD.org>2009-07-13 19:05:39 +0000
commit1a8f73c921695fb365fd62992e90e8d40e94343a (patch)
tree447f607459addcce932c00ca52c03ac9e462c321 /cribbage/io.c
parent1f35120ec096783ec21160ac00f22c0fb221a918 (diff)
downloadbsdgames-darwin-1a8f73c921695fb365fd62992e90e8d40e94343a.tar.gz
bsdgames-darwin-1a8f73c921695fb365fd62992e90e8d40e94343a.tar.zst
bsdgames-darwin-1a8f73c921695fb365fd62992e90e8d40e94343a.zip
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
Diffstat (limited to 'cribbage/io.c')
-rw-r--r--cribbage/io.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/cribbage/io.c b/cribbage/io.c
index b661f2c9..8bf6ee62 100644
--- a/cribbage/io.c
+++ b/cribbage/io.c
@@ -1,4 +1,4 @@
-/* $NetBSD: io.c,v 1.22 2009/06/04 04:48:04 dholland Exp $ */
+/* $NetBSD: io.c,v 1.23 2009/07/13 19:05:40 roy Exp $ */
/*-
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: io.c,v 1.22 2009/06/04 04:48:04 dholland Exp $");
+__RCSID("$NetBSD: io.c,v 1.23 2009/07/13 19:05:40 roy Exp $");
#endif
#endif /* not lint */
@@ -226,7 +226,7 @@ incard(CARD *crd)
retval = FALSE;
rnk = sut = EMPTY;
- if (!(line = getline()))
+ if (!(line = get_line()))
goto gotit;
p = p1 = line;
while (*p1 != ' ' && *p1 != '\0')
@@ -325,7 +325,7 @@ number(int lo, int hi, const char *prompt)
for (sum = 0;;) {
msg(prompt);
- if (!(p = getline()) || *p == '\0') {
+ if (!(p = get_line()) || *p == '\0') {
msg(quiet ? "Not a number" :
"That doesn't look like a number");
continue;
@@ -506,12 +506,12 @@ over:
}
/*
- * getline:
+ * get_line:
* Reads the next line up to '\n' or EOF. Multiple spaces are
* compressed to one space; a space is inserted before a ','
*/
char *
-getline(void)
+get_line(void)
{
char *sp;
int c, oy, ox;