grass  7.8.6
About: GRASS (Geographic Resources Analysis Support System) is a raster- and vector-based GIS, image processing system, graphics production system and spatial modeling system.
  Fossies Dox: grass-7.8.6.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

alloc.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include "raster3d_intern.h"
Include dependency graph for alloc.c:

Go to the source code of this file.

Functions

void * Rast3d_malloc (int nBytes)
 Same as malloc (nBytes), except that in case of error Rast3d_error() is invoked. More...
 
void * Rast3d_realloc (void *ptr, int nBytes)
 Same as realloc (ptr, nBytes), except that in case of error Rast3d_error() is invoked. More...
 
void Rast3d_free (void *buf)
 Same as free (ptr). More...
 

Function Documentation

◆ Rast3d_free()

◆ Rast3d_malloc()

void * Rast3d_malloc ( int  nBytes)

Same as malloc (nBytes), except that in case of error Rast3d_error() is invoked.

Parameters
nBytes
Returns
void *: a pointer ... if successful, NULL ... otherwise.

Definition at line 22 of file alloc.c.

References NULL, and Rast3d_error().

Referenced by cache_test_add(), Rast3d_alloc_tiles_type(), Rast3d_cache_hash_new(), Rast3d_cache_new(), Rast3d_fill_header(), Rast3d_flush_index(), Rast3d_init_fp_xdr(), Rast3d_init_index(), Rast3d_make_aligned_volume_file(), Rast3d_open_cell_new(), Rast3d_open_cell_old(), Rast3d_open_cell_old_no_header(), Rast3d_readIndex(), and Rast3d_set_standard3d_input_params().

◆ Rast3d_realloc()

void * Rast3d_realloc ( void *  ptr,
int  nBytes 
)

Same as realloc (ptr, nBytes), except that in case of error Rast3d_error() is invoked.

Parameters
ptr
nBytes
Returns
void *: a pointer ... if successful, NULL ... otherwise.

Definition at line 48 of file alloc.c.

References NULL, and Rast3d_error().

Referenced by Rast3d_fill_header(), and Rast3d_init_fp_xdr().