Back to index

tetex-bin  3.0
Functions
xmalloc.c File Reference
#include <stdio.h>
#include <kpathsea/config.h>

Go to the source code of this file.

Functions

void *xmalloc P1C (unsigned, size)

Function Documentation

void* xmalloc P1C ( unsigned  ,
size   
)

Definition at line 24 of file xmalloc.c.

{
  void *new_mem = (void *) malloc (size ? size : 1);

  if (new_mem == NULL)
    {
      fprintf (stderr, "fatal: memory exhausted (xmalloc of %u bytes).\n",
               size);
      /* 1 means success on VMS, so pick a random number (ASCII `K').  */
      exit (75);
    }

  return new_mem;
}

Here is the call graph for this function: