/* * bauble: a tiny room-based messaging system. * * xmalloc() mallocs memory or panics */ #include char * xmalloc(size) { register char *tmp; extern char *malloc(); if (tmp=malloc(size)) return tmp; panic("can't malloc %d bytes", size); return (char *)0; }