Logo Search packages:      
Sourcecode: jack-tools version File versions  Download package

memory.c

#ifndef _MEMORY_C
#define _MEMORY_C

#include <stdlib.h>
#include <stdio.h>

void *
xmalloc ( size_t size ) 
{
  void *p = malloc ( size ) ;
  if ( p == NULL ) {
    fprintf ( stderr , "malloc() failed: %d\n" , (int) size ) ;  
    FAILURE ;
  }
  return p ;
}

#endif

Generated by  Doxygen 1.6.0   Back to index