mirror of
https://github.com/vattam/BSDGames.git
synced 2025-12-21 03:14:50 +00:00
copy in from cvs; cvs2svn fucked up big time
git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@9775 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
14
mille/save.c
14
mille/save.c
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: save.c,v 1.6 1997/10/12 00:54:32 lukem Exp $ */
|
||||
/* $NetBSD: save.c,v 1.10 1999/09/09 17:30:20 jsm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@@ -38,22 +38,18 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)save.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: save.c,v 1.6 1997/10/12 00:54:32 lukem Exp $");
|
||||
__RCSID("$NetBSD: save.c,v 1.10 1999/09/09 17:30:20 jsm Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
#include <time.h>
|
||||
|
||||
#include "mille.h"
|
||||
|
||||
#ifndef unctrl
|
||||
#include "unctrl.h"
|
||||
#endif
|
||||
|
||||
# ifdef attron
|
||||
# include <term.h>
|
||||
# endif attron
|
||||
|
||||
#include <time.h>
|
||||
|
||||
/*
|
||||
* @(#)save.c 1.2 (Berkeley) 3/28/83
|
||||
*/
|
||||
@@ -85,7 +81,7 @@ over:
|
||||
leaveok(Board, FALSE);
|
||||
refresh();
|
||||
sp = buf;
|
||||
while ((*sp = readch()) != '\n') {
|
||||
while ((*sp = readch()) != '\n' && *sp != '\r') {
|
||||
if (*sp == killchar())
|
||||
goto over;
|
||||
else if (*sp == erasechar()) {
|
||||
|
||||
Reference in New Issue
Block a user