GRASS GIS 7 Programmer's Manual
7.0.5(2016)-r00000
rowio/put.c
Go to the documentation of this file.
1
14
#include <stdio.h>
15
#include <string.h>
16
#include <grass/rowio.h>
17
18
42
int
Rowio_put
(ROWIO * R,
const
void
*buf,
int
row)
43
{
44
int
i;
45
46
if
(row < 0)
47
return
0;
48
49
for
(i = 0; i < R->nrows; i++)
50
if
(row == R->rcb[i].row) {
51
memcpy(R->rcb[i].buf, buf, R->len);
52
R->rcb[i].dirty = 1;
53
return
1;
54
}
55
return
((*R->putrow) (R->fd, buf, row, R->len));
56
}
Rowio_put
int Rowio_put(ROWIO *R, const void *buf, int row)
Write a row.
Definition:
rowio/put.c:42
rowio
put.c
Generated on Thu Dec 1 2016 19:05:05 for GRASS GIS 7 Programmer's Manual by
1.8.12