-/* static */
-
-static void
-badmalloc(unsigned int size)
-{
- eprint("fatal: could not malloc() %u bytes\n", size);
-}
-
-/* extern */
-
-void *
-emalloc(unsigned int size)
-{
- void *res = malloc(size);
- if(!res)
- badmalloc(size);
- return res;
-}