GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r73122
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
xnull.c
Go to the documentation of this file.
1 
2 #include <grass/gis.h>
3 #include <grass/raster.h>
4 #include <grass/calc.h>
5 
6 /****************************************************************
7 null() null values
8 ****************************************************************/
9 
10 int f_null(int argc, const int *argt, void **args)
11 {
12  CELL *res = args[0];
13  int i;
14 
15  if (argc > 0)
16  return E_ARG_HI;
17 
18  if (argt[0] != CELL_TYPE)
19  return E_RES_TYPE;
20 
21  for (i = 0; i < columns; i++)
22  SET_NULL_C(&res[i]);
23 
24  return 0;
25 }
#define CELL_TYPE
Definition: raster.h:11
#define SET_NULL_C(x)
Definition: calc.h:32
Definition: calc.h:13
int columns
Definition: calc.c:12
int f_null(int argc, const int *argt, void **args)
Definition: xnull.c:10
int CELL
Definition: gis.h:580