From b1c8e14afd5a078ca925fe471733a693ca4a8076 Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 5 Feb 2001 00:57:32 +0000 Subject: - rename getchar to lgetchar to avoid conflicts with the stdio getchar - fix redundant decls and nested externs - use snprintf instead of sprintf --- larn/io.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'larn/io.c') diff --git a/larn/io.c b/larn/io.c index 73952da8..b9f963fa 100644 --- a/larn/io.c +++ b/larn/io.c @@ -1,4 +1,4 @@ -/* $NetBSD: io.c,v 1.10 2000/05/24 14:20:29 blymn Exp $ */ +/* $NetBSD: io.c,v 1.11 2001/02/05 00:57:33 christos Exp $ */ /* * io.c Larn is copyrighted 1986 by Noah Morgan. @@ -7,7 +7,7 @@ * * setupvt100() Subroutine to set up terminal in correct mode for game * clearvt100() Subroutine to clean up terminal when the game is over - * getchar() Routine to read in one character from the terminal + * lgetchar() Routine to read in one character from the terminal * scbr() Function to set cbreak -echo for the terminal * sncbr() Function to set -cbreak echo for the terminal * newgame() Subroutine to save the initial time and seed rnd() @@ -62,7 +62,7 @@ */ #include #ifndef lint -__RCSID("$NetBSD: io.c,v 1.10 2000/05/24 14:20:29 blymn Exp $"); +__RCSID("$NetBSD: io.c,v 1.11 2001/02/05 00:57:33 christos Exp $"); #endif /* not lint */ #include "header.h" @@ -164,10 +164,10 @@ clearvt100() } /* - * getchar() Routine to read in one character from the terminal + * lgetchar() Routine to read in one character from the terminal */ int -getchar() +lgetchar() { char byt; #ifdef EXTRA -- cgit v1.2.3