ftp.nice.ch/pub/next/unix/developer/docgen.0.3.2.s.tar.gz#/docgen-0.3.2/regex-0.12/test/xmalloc.c

This is xmalloc.c in view mode; [Download] [Up]

#include <stdio.h>
extern char *malloc ();

#ifndef NULL
#define NULL 0
#endif

void *
xmalloc (size)
  unsigned size;
{
  char *new_mem = malloc (size); 
  
  if (new_mem == NULL)
    {
      fprintf (stderr, "xmalloc: request for %u bytes failed.\n", size);
      abort ();
    }

  return new_mem;
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.