]>
git.cameronkatri.com Git - bsdgames-darwin.git/blob - hack/hack.rip.c
1 /* $NetBSD: hack.rip.c,v 1.5 1997/10/19 16:58:53 christos Exp $ */
4 * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
9 __RCSID("$NetBSD: hack.rip.c,v 1.5 1997/10/19 16:58:53 christos Exp $");
15 static char *riptop
= "\
23 static char *ripmid
= " | %*s%*s |\n";
25 static 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());
75 int n
= strlen(text
) / 2;
76 printf(ripmid
, 8 + n
, text
, 8 - n
, "");