GRASS Programmer's Manual  6.4.2(2012)
g3dnull.c
Go to the documentation of this file.
00001 #include <stdio.h>
00002 #include <stdlib.h>
00003 #include <sys/types.h>
00004 #include <unistd.h>
00005 #include "G3d_intern.h"
00006 
00007 /*---------------------------------------------------------------------------*/
00008 
00009 int G3d_isNullValueNum(const void *n, int type)
00010 {
00011     if (type == FCELL_TYPE)
00012         return G_is_f_null_value(n);
00013     else
00014         return G_is_d_null_value(n);
00015 }
00016 
00017 /*---------------------------------------------------------------------------*/
00018 
00019 
00032 void G3d_setNullValue(void *c, int nofElts, int type)
00033 {
00034     if (type == FCELL_TYPE) {
00035         G_set_f_null_value((float *)c, nofElts);
00036         return;
00037     }
00038 
00039     G_set_d_null_value((double *)c, nofElts);
00040 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines