1 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
2 /* hack.rip.c - version 1.0.2 */
3 /* $FreeBSD: src/games/hack/hack.rip.c,v 1.4 1999/11/16 10:26:37 marcel Exp $ */
10 static char *rip[] = {
24 " _________)/\\\\_//(\\/(/\\)/\\//\\/|_)_______\n",
35 (void) strcpy(buf, plname);
38 (void) sprintf(buf, "%ld AU", u.ugold);
40 (void) sprintf(buf, "killed by%s",
41 !strncmp(killer, "the ", 4) ? "" :
42 !strcmp(killer, "starvation") ? "" :
43 index(vowels, *killer) ? " an" : " a");
45 (void) strcpy(buf, killer);
46 if(strlen(buf) > 16) {
49 for(i = 0; i <= 16; i++)
50 if(buf[i] == ' ') i0 = i, i1 = i+1;
57 (void) sprintf(buf, "%4d", getyear());
59 for(y=8; *dp; y++,dp++){
63 while(dpx[x] == ' ') x++;
65 while(dpx[x] && dpx[x] != ' '){
66 extern int done_stopprint;
70 (void) putchar(dpx[x++]);
77 center(line, text) int line; char *text; {
80 op = &rip[line][28 - ((strlen(text)+1)/2)];
81 while(*ip) *op++ = *ip++;