diff options
| author | christos <christos@NetBSD.org> | 2001-02-05 00:57:32 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2001-02-05 00:57:32 +0000 |
| commit | b1c8e14afd5a078ca925fe471733a693ca4a8076 (patch) | |
| tree | 479753089c657c4900becbda1592945edbc418bb /larn/io.c | |
| parent | 5813ff28d2110a139386e10f5e3977f3b88dbda8 (diff) | |
| download | bsdgames-darwin-b1c8e14afd5a078ca925fe471733a693ca4a8076.tar.gz bsdgames-darwin-b1c8e14afd5a078ca925fe471733a693ca4a8076.zip | |
- rename getchar to lgetchar to avoid conflicts with the stdio getchar
- fix redundant decls and nested externs
- use snprintf instead of sprintf
Diffstat (limited to 'larn/io.c')
| -rw-r--r-- | larn/io.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 <sys/cdefs.h> #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 |
