summaryrefslogtreecommitdiff
path: root/games/number
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2005-11-05 22:55:38 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2005-11-05 22:55:38 +0000
commitccef80c3b004465f7b6248f7cbd1695a792ad03a (patch)
tree8cc265719f67058ec0aeb0addd036632a1d30722 /games/number
parent8221eafe7c940ce73a70b3b57c348014582b2bff (diff)
remove extra \n;
from pjanzen@
Diffstat (limited to 'games/number')
-rw-r--r--games/number/number.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/games/number/number.c b/games/number/number.c
index 0a3177f4cbd..f17fd5a9da1 100644
--- a/games/number/number.c
+++ b/games/number/number.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: number.c,v 1.12 2005/11/05 22:53:05 jmc Exp $ */
+/* $OpenBSD: number.c,v 1.13 2005/11/05 22:55:37 jmc Exp $ */
/*
* Copyright (c) 1988, 1993, 1994
@@ -39,7 +39,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)number.c 8.3 (Berkeley) 5/4/95";
#else
-static char rcsid[] = "$OpenBSD: number.c,v 1.12 2005/11/05 22:53:05 jmc Exp $";
+static char rcsid[] = "$OpenBSD: number.c,v 1.13 2005/11/05 22:55:37 jmc Exp $";
#endif
#endif /* not lint */
@@ -327,13 +327,14 @@ pfract(int len)
switch(len) {
case 1:
- (void)printf("tenths.\n");
+ (void)printf("tenths%s", lflag ? "" : ".\n");
break;
case 2:
- (void)printf("hundredths.\n");
+ (void)printf("hundredths%s", lflag ? "" : ".\n");
break;
default:
- (void)printf("%s%sths.\n", pref[len % 3], name3[len / 3]);
+ (void)printf("%s%sths%s", pref[len % 3], name3[len / 3],
+ lflag ? "" : ".\n");
break;
}
}