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 $ */
4 /* $DragonFly: src/games/hack/hack.rip.c,v 1.2 2003/06/17 04:25:24 dillon Exp $ */
11 static char *rip[] = {
25 " _________)/\\\\_//(\\/(/\\)/\\//\\/|_)_______\n",
36 (void) strcpy(buf, plname);
39 (void) sprintf(buf, "%ld AU", u.ugold);
41 (void) sprintf(buf, "killed by%s",
42 !strncmp(killer, "the ", 4) ? "" :
43 !strcmp(killer, "starvation") ? "" :
44 index(vowels, *killer) ? " an" : " a");
46 (void) strcpy(buf, killer);
47 if(strlen(buf) > 16) {
50 for(i = 0; i <= 16; i++)
51 if(buf[i] == ' ') i0 = i, i1 = i+1;
58 (void) sprintf(buf, "%4d", getyear());
60 for(y=8; *dp; y++,dp++){
64 while(dpx[x] == ' ') x++;
66 while(dpx[x] && dpx[x] != ' '){
67 extern int done_stopprint;
71 (void) putchar(dpx[x++]);
78 center(line, text) int line; char *text; {
81 op = &rip[line][28 - ((strlen(text)+1)/2)];
82 while(*ip) *op++ = *ip++;