]>
git.cameronkatri.com Git - bsdgames-darwin.git/blob - hack/hack.rip.c
1 /* $NetBSD: hack.rip.c,v 1.6 2001/03/25 20:44:02 jsm Exp $ */
4 * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
9 __RCSID("$NetBSD: hack.rip.c,v 1.6 2001/03/25 20:44:02 jsm Exp $");
15 static const char *riptop
= "\
23 static const char *ripmid
= " | %*s%*s |\n";
25 static const char *ripbot
= "\
27 _________)/\\\\_//(\\/(/\\)/\\//\\/|_)_______";
37 (void) strcpy(buf
, plname
);
40 (void) sprintf(buf
, "%ld AU", u
.ugold
);
42 (void) sprintf(buf
, "killed by%s",
43 !strncmp(killer
, "the ", 4) ? "" :
44 !strcmp(killer
, "starvation") ? "" :
45 strchr(vowels
, *killer
) ? " an" : " a");
47 (void) strcpy(buf
, killer
);
50 if ((i1
= strlen(buf
)) > 16) {
53 for (i
= 0; i
<= 16; i
++)
64 (void) sprintf(buf
, "%4d", getyear());
72 int line
__attribute__((__unused__
));
75 int n
= strlen(text
) / 2;
76 printf(ripmid
, 8 + n
, text
, 8 - n
, "");