5
#include "raster3d_intern.h"
7
/*---------------------------------------------------------------------------*/
13
* Same as <em>malloc (nBytes)</em>, except that in case of error
14
* <tt>Rast3d_error()</tt> is invoked.
17
* \return void *: a pointer ... if successful,
22
void *Rast3d_malloc(int nBytes)
28
if ((buf = malloc(nBytes)) != NULL)
31
Rast3d_error("Rast3d_malloc: out of memory");
39
* Same as <em>realloc (ptr, nBytes)</em>, except that in case of error
40
* <tt>Rast3d_error()</tt> is invoked.
44
* \return void *: a pointer ... if successful,
48
void *Rast3d_realloc(void *ptr, int nBytes)
52
if ((ptr = realloc(ptr, nBytes)) != NULL)
55
Rast3d_error("Rast3d_realloc: out of memory");
63
* Same as <em>free (ptr)</em>.
69
void Rast3d_free(void *buf)