1 #include <grass/raster.h>
2 
3 #include "local_proto.h"
4 
5 
adjcellhd(struct Cell_head * cellhd)6 int adjcellhd(struct Cell_head *cellhd)
7 {
8     int retval;
9 
10 
11     retval = 0;
12 
13     Rast_set_window(cellhd);
14 
15     if (cellhd->rows != Rast_window_rows()) {
16 	retval = 2;
17     }
18 
19     if (cellhd->cols != Rast_window_cols()) {
20 	retval = 3;
21     }
22 
23     return (retval);
24 }
25