| 239 | |
| 240 | extern void panic(const char *, ...); |
| 241 | void * |
| 242 | m_alloc(size_t amt) |
| 243 | { |
| 244 | void *ptr; |
| 245 | |
| 246 | ptr = malloc(amt); |
| 247 | if (!ptr) |
| 248 | panic("Memory allocation failure; cannot get %lu bytes", amt); |
| 249 | return (ptr); |
| 250 | } |
| 251 | |
| 252 | void |
| 253 | mar_clear_messagewin(void) |
no test coverage detected