outrip(winid, int, when) -- The tombstone code. If you want the traditional code use genl_outrip for the value and check the #if in rip.c. */
| 1137 | genl_outrip for the value and check the #if in rip.c. |
| 1138 | */ |
| 1139 | void |
| 1140 | gnome_outrip(winid wid, int how, time_t when) |
| 1141 | { |
| 1142 | /* Follows roughly the same algorithm as genl_outrip() */ |
| 1143 | char buf[BUFSZ]; |
| 1144 | char ripString[BUFSZ] = "\0"; |
| 1145 | long year; |
| 1146 | |
| 1147 | /* Put name on stone */ |
| 1148 | Sprintf(buf, "%s\n", svp.plname); |
| 1149 | Strcat(ripString, buf); |
| 1150 | |
| 1151 | /* Put $ on stone */ |
| 1152 | Sprintf(buf, "%ld Au\n", done_money); |
| 1153 | Strcat(ripString, buf); |
| 1154 | |
| 1155 | /* Put together death description */ |
| 1156 | formatkiller(buf, sizeof buf, how, FALSE); |
| 1157 | |
| 1158 | /* Put death type on stone */ |
| 1159 | Strcat(ripString, buf); |
| 1160 | Strcat(ripString, "\n"); |
| 1161 | |
| 1162 | /* Put year on stone */ |
| 1163 | year = yyyymmdd(when) / 10000L; |
| 1164 | Sprintf(buf, "%4ld\n", year); |
| 1165 | Strcat(ripString, buf); |
| 1166 | |
| 1167 | ghack_text_window_rip_string(ripString); |
| 1168 | } |
nothing calls this directly
no test coverage detected