]>
git.cameronkatri.com Git - bsdgames-darwin.git/blob - hack/hack.rip.c
2 * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
6 static char rcsid
[] = "$NetBSD: hack.rip.c,v 1.4 1995/03/23 08:31:23 cgd Exp $";
14 static char *riptop
= "\
22 static char *ripmid
= " | %*s%*s |\n";
24 static char *ripbot
= "\
26 _________)/\\\\_//(\\/(/\\)/\\//\\/|_)_______";
34 (void) strcpy(buf
, plname
);
37 (void) sprintf(buf
, "%ld AU", u
.ugold
);
39 (void) sprintf(buf
, "killed by%s",
40 !strncmp(killer
, "the ", 4) ? "" :
41 !strcmp(killer
, "starvation") ? "" :
42 index(vowels
, *killer
) ? " an" : " a");
44 (void) strcpy(buf
, killer
);
47 if((i1
= strlen(buf
)) > 16) {
50 for(i
= 0; i
<= 16; i
++)
51 if(buf
[i
] == ' ') i0
= i
, i1
= i
+1;
59 (void) sprintf(buf
, "%4d", getyear());
65 center(line
, text
) int line
; char *text
; {
66 register int n
= strlen(text
)/2;
67 printf(ripmid
, 8+n
, text
, 8-n
, "");