5 kx
5 kx #ifdef HAVE_CONFIG_H
5 kx #include <config.h>
5 kx #endif
5 kx
5 kx #include <stdlib.h>
5 kx #include <stdio.h>
5 kx #include <unistd.h>
5 kx #include <string.h>
5 kx
5 kx #include <defs.h>
5 kx
5 kx #include <error.h>
5 kx #include <msglog.h>
5 kx
5 kx
5 kx void *xmalloc( size_t n )
5 kx {
5 kx void *p = NULL;
5 kx
5 kx p = malloc( n );
5 kx if( !p ) no_space();
5 kx bzero( p, n );
5 kx
5 kx return( p );
5 kx }
5 kx
5 kx void *xrealloc( void *b, size_t n )
5 kx {
5 kx void *p = NULL;
5 kx
5 kx p = realloc( b , n );
5 kx if( !p ) no_space();
5 kx
5 kx return( p );
5 kx }