summaryrefslogtreecommitdiffstats
path: root/larn/global.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2008-02-03 20:11:04 +0000
committerdholland <dholland@NetBSD.org>2008-02-03 20:11:04 +0000
commitccda27626c3c6cd1976164c34418d0fd2f920b62 (patch)
treefbb1346b8cce7bc477e94eef43ec6b43d99bb70b /larn/global.c
parent476d2b8cf076c51c8aa05419833b24369b8ee286 (diff)
downloadbsdgames-darwin-ccda27626c3c6cd1976164c34418d0fd2f920b62.tar.gz
bsdgames-darwin-ccda27626c3c6cd1976164c34418d0fd2f920b62.tar.zst
bsdgames-darwin-ccda27626c3c6cd1976164c34418d0fd2f920b62.zip
Larn does not need its own private versions of functions from <ctype.h>.
Also, remove the function gettokstr(), which is not used. From larn 12.2.
Diffstat (limited to 'larn/global.c')
-rw-r--r--larn/global.c29
1 files changed, 2 insertions, 27 deletions
diff --git a/larn/global.c b/larn/global.c
index 28d24b5a..82e1ef44 100644
--- a/larn/global.c
+++ b/larn/global.c
@@ -1,4 +1,4 @@
-/* $NetBSD: global.c,v 1.9 2008/01/28 05:38:53 dholland Exp $ */
+/* $NetBSD: global.c,v 1.10 2008/02/03 20:11:05 dholland Exp $ */
/*
* global.c Larn is copyrighted 1986 by Noah Morgan.
@@ -23,7 +23,7 @@
*/
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: global.c,v 1.9 2008/01/28 05:38:53 dholland Exp $");
+__RCSID("$NetBSD: global.c,v 1.10 2008/02/03 20:11:05 dholland Exp $");
#endif /* not lint */
#include <string.h>
@@ -794,31 +794,6 @@ adjustcvalues(int theitem, int arg)
}
/*
- function to read a string from token input "string"
- returns a pointer to the string
- */
-void
-gettokstr(str)
- char *str;
-{
- int i, j;
- i = 50;
- while ((lgetchar() != '"') && (--i > 0));
- i = 36;
- while (--i > 0) {
- if ((j = lgetchar()) != '"')
- *str++ = j;
- else
- i = 0;
- }
- *str = 0;
- i = 50;
- if (j != '"')
- /* if end due to too long, then find closing quote */
- while ((lgetchar() != '"') && (--i > 0));
-}
-
-/*
function to ask user for a password (no echo)
returns 1 if entered correctly, 0 if not
*/