mirror of
https://github.com/vattam/BSDGames.git
synced 2025-12-21 03:14:50 +00:00
releasing version 2.17-1
git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@11092 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
a.out
|
||||
*.d
|
||||
*.i
|
||||
*.s
|
||||
*.d.tmp
|
||||
arithmetic
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: arithmetic.c,v 1.20 2004/01/27 20:30:28 jsm Exp $ */
|
||||
/* $NetBSD: arithmetic.c,v 1.21 2004/11/05 21:30:31 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)arithmetic.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: arithmetic.c,v 1.20 2004/01/27 20:30:28 jsm Exp $");
|
||||
__RCSID("$NetBSD: arithmetic.c,v 1.21 2004/11/05 21:30:31 dsl Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@@ -246,8 +246,8 @@ retry:
|
||||
(void)printf("\n");
|
||||
return(EOF);
|
||||
}
|
||||
for (p = line; *p && isspace(*p); ++p);
|
||||
if (!isdigit(*p)) {
|
||||
for (p = line; *p && isspace((unsigned char)*p); ++p);
|
||||
if (!isdigit((unsigned char)*p)) {
|
||||
(void)printf("Please type a number.\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user