| 1153 | DISABLE_WARNING_FORMAT_NONLITERAL /* RESTORE_WARNING follows wiz_show_stats */ |
| 1154 | |
| 1155 | staticfn void |
| 1156 | obj_chain( |
| 1157 | winid win, |
| 1158 | const char *src, |
| 1159 | struct obj *chain, |
| 1160 | boolean force, |
| 1161 | long *total_count, long *total_size) |
| 1162 | { |
| 1163 | char buf[BUFSZ]; |
| 1164 | long count = 0L, size = 0L; |
| 1165 | |
| 1166 | count_obj(chain, &count, &size, TRUE, FALSE); |
| 1167 | |
| 1168 | if (count || size || force) { |
| 1169 | *total_count += count; |
| 1170 | *total_size += size; |
| 1171 | Sprintf(buf, template, src, count, size); |
| 1172 | putstr(win, 0, buf); |
| 1173 | } |
| 1174 | } |
| 1175 | |
| 1176 | staticfn void |
| 1177 | mon_invent_chain( |
no test coverage detected