Loading...
Searching...
No Matches
xnull.c
Go to the documentation of this file.
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/calc.h>
/****************************************************************
null() null values
****************************************************************/
int f_null(int argc, const int *argt, void **args)
{
CELL *res = args[0];
int i;
if (argc > 0)
return E_ARG_HI;
if (argt[0] != CELL_TYPE)
return E_RES_TYPE;
for (i = 0; i < columns; i++)
SET_NULL_C(&res[i]);
return 0;
}
columns
int columns
Definition calc.c:11
f_null
int f_null(int argc, const int *argt, void **args)
Definition xnull.c:9