GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
g3dalloc.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#include "G3d_intern.h"
Include dependency graph for g3dalloc.c:

Go to the source code of this file.

Functions

void * G3d_malloc (int nBytes)
 Same as malloc (nBytes), except that in case of error G3d_error() is invoked. More...
 
void * G3d_realloc (void *ptr, int nBytes)
 Same as realloc (ptr, nBytes), except that in case of error G3d_error() is invoked. More...
 
void G3d_free (void *buf)
 Same as free (ptr). More...
 

Function Documentation

void G3d_free ( void *  buf)
void* G3d_malloc ( int  nBytes)

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

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

Definition at line 24 of file g3dalloc.c.

References buf, G3d_error(), malloc(), and NULL.

Referenced by G3d_allocTilesType(), G3d_cache_hash_new(), G3d_cache_new(), G3d_fillHeader(), G3d_flushIndex(), G3d_initFpXdr(), G3d_initIndex(), G3d_makeAlignedVolumeFile(), G3d_openCellNew(), G3d_openCellOld(), G3d_openCellOldNoHeader(), and G3d_setStandard3dInputParams().

void* G3d_realloc ( void *  ptr,
int  nBytes 
)

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

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

Definition at line 50 of file g3dalloc.c.

References G3d_error(), and NULL.

Referenced by G3d_fillHeader(), and G3d_initFpXdr().