Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Functions
hnjalloc.c File Reference
#include <stdlib.h>
#include <stdio.h>

Go to the source code of this file.

Functions

void * hnj_malloc (int size)
void * hnj_realloc (void *p, int size)
void hnj_free (void *p)

Function Documentation

void hnj_free ( void *  p)

Definition at line 68 of file hnjalloc.c.

{
  free (p);
}

Here is the caller graph for this function:

void* hnj_malloc ( int  size)

Definition at line 42 of file hnjalloc.c.

{
  void *p;

  p = malloc (size);
  if (p == NULL)
    {
      fprintf (stderr, "can't allocate %d bytes\n", size);
      exit (1);
    }
  return p;
}

Here is the caller graph for this function:

void* hnj_realloc ( void *  p,
int  size 
)

Definition at line 56 of file hnjalloc.c.

{
  p = realloc (p, size);
  if (p == NULL)
    {
      fprintf (stderr, "can't allocate %d bytes\n", size);
      exit (1);
    }
  return p;
}

Here is the caller graph for this function: