Debian Codegraph @

raster/r.watershed/seg/sseg_put.c

raw symbols SCIP
1 #include <grass/gis.h>
2 #include <grass/segment.h>
3 #include "Gwater.h"
4
5 int seg_put(SSEG *sseg, char *value, GW_LARGE_INT row, GW_LARGE_INT col)
6 {
7 if (Segment_put(&(sseg->seg), value, row, col) < 0) {
8 G_warning("seg_put(): could not write segment file");
9 return -1;
10 }
11 return 0;
12 }
13
14 int seg_put_row(SSEG *sseg, char *value, GW_LARGE_INT row)
15 {
16 if (Segment_put_row(&(sseg->seg), value, row) < 0) {
17 G_warning("seg_put(): could not write segment file");
18 return -1;
19 }
20 return 0;
21 }